public List <DropDownItem> GetAllRoles() { using (var dac = new RoleDac()) { return(dac.GetAllRoles()); } }
public Role(String UserId) { _UserRoles = RoleDac.GetUserRoles(UserId).Tables[0]; }
public static void GrantUserRoles(String UserId, String ProgramId, String Rights) { RoleDac.GrantUserRoles(UserId, ProgramId, Rights); }
public Role(String UserId, String ProgramId) { _UserRoles = RoleDac.GetUserRoles(UserId, ProgramId).Tables[0]; }