示例#1
0
 public ActionResult ViewUsers(EducationRole role)
 {
     var model = new UsersViewModel();
     model.Users = _repo.GetAllForRole(role);
     return View(model);
 }
示例#2
0
 public List<UserModel> GetAllForRole(EducationRole role)
 {
     return _repository.Find<UserModel>(u => u.Role.Equals(role));
 }