public ActionResult GetUserDetails(int ID) { var gradeLevelRepo = new SqlLMSGradeLevelRepository(); var roleRepo = new SqlLmsRoleRepository(); var user = _lmsUserManager.GetUnassignedUserDetails(ID); UserDetailsToEditVM model = new UserDetailsToEditVM(); model.UserDetailsToEdit = user.Data; model.CreateGradeLevel(gradeLevelRepo.GradeLevelGetAll()); model.CreateRole(roleRepo.RoleGetAll()); var userAllRoles = model.CreateUserRoleList(roleRepo.UserGetAllRoles(ID)); model.PopulateRolesCheckbox(userAllRoles); return View(model); }
public ActionResult Search(AdminUserSearch user) { var model = _lmsUserManager.Search(user); var roleRepo = new SqlLmsRoleRepository(); model.CreateRole(roleRepo.RoleGetAll()); return View(model); }
public ActionResult Search() { var roleRepo = new SqlLmsRoleRepository(); AdminUserSearch model = new AdminUserSearch(); model.CreateRole(roleRepo.RoleGetAll()); return View(model); }