예제 #1
0
        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);
        }
예제 #2
0
        public ActionResult Search(AdminUserSearch user)
        {
            var model = _lmsUserManager.Search(user);
            var roleRepo = new SqlLmsRoleRepository();
            model.CreateRole(roleRepo.RoleGetAll());

            return View(model);
        }
예제 #3
0
        public ActionResult Search()
        {
            var roleRepo = new SqlLmsRoleRepository();
            AdminUserSearch model = new AdminUserSearch();
            model.CreateRole(roleRepo.RoleGetAll());

            return View(model);
        }