- Timestamp:
- 06/25/10 19:48:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabRoleProvider.cs
r3943 r3951 1 1 using System; 2 2 using System.Web.Security; 3 using System.Linq; 3 4 using Persistence; 4 5 … … 51 52 52 53 public override bool RoleExists(string roleName) { 53 throw new NotImplementedException(); 54 55 Persistence.DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext(); 56 bool returnValue = (DatabaseUtil.createDataClassesDataContext().HeuristicLabRole.Count(r => r.RoleName == roleName) == 1); 57 db.Connection.Close(); 58 return returnValue; 59 54 60 } 55 61 }
Note: See TracChangeset
for help on using the changeset viewer.