Example #1
0
 private void LoadStore()
 {
     try
     {
         _Roles = RoleCollection.GetRoleCollection();
     }
     catch (Exception ex)
     {
         string err = ex.ToString();
     }
 }
Example #2
0
        public RoleCollection GetRolesForUser(string userName)
        {
            //RoleCollection Results = new RoleCollection();

            //foreach (Role r in _Roles)
            //{
            //    if (r.AssignedUsers.Contains(userName))
            //        Results.Add(r);
            //}
            //return Results;
            return(RoleCollection.GetRoleCollection(userName));
        }