Exemple #1
0
 public List <UserComboboxViewData> GetUsersCombobox()
 {
     return(ViewDataMapper <UserComboboxViewData, ApplicationUser> .MapObjects(_userRepository.GetMulti(x => x.Status).ToList()));
 }
Exemple #2
0
 public List <ApplicationRoleComboboxViewData> GetRolesExceptInUserIdCombobox(String userId)
 {
     return(ViewDataMapper <ApplicationRoleComboboxViewData, ApplicationRole> .MapObjects(_userRoleRepository.GetRolesExceptInUserIdCombobox(userId).Where(x => x.Status).ToList()));
 }
 public virtual JsonResult GetAll()
 {
     return(Json(ViewDataMapper <VM, T> .MapObjects(_service.GetAll()), JsonRequestBehavior.AllowGet));
 }