public UserRoleViewModel(string userName) { UserModel = new UserModel(MembershipUserExtended.GetUser(userName, false)); Roles = System.Web.Security.Roles.GetAllRoles().ToList(); WeeklyTimeTrackModel = TimeTrackManager.GetCurrentWeekClockInOutTime(userName); }
public UserRoleViewModel() { UserModel = new UserModel(); Roles = System.Web.Security.Roles.GetAllRoles().ToList(); }