Example #1
0
 public override IQueryable <Role> GetRoles()
 {
     return(CobaltWebApi.GetRoles().Select(r => new Role()
     {
         Id = r.Id, ApplicationName = base.ApplicationName, Name = r.Name
     }).AsQueryable());
 }
Example #2
0
        public override Role GetRole(string roleName)
        {
            MembershipRole role = CobaltWebApi.GetRoles().FirstOrDefault(r => r.Name == roleName);

            return(new Role()
            {
                Id = role.Id, ApplicationName = base.ApplicationName, Name = role.Name
            });
        }
Example #3
0
 public override string[] GetRoleNames()
 {
     return(CobaltWebApi.GetRoles().Select(r => r.Name).ToArray());
 }