public UserListModel() { Users = new List<User>(); UserSearchModel=new UserSearchModel(); RoleUsers=new List<RoleUser>(); }
public ActionResult UserList(UserSearchModel userSearchModel) { userSearchModel.UserQueryItem.Pagination.PageIndex = PageIndex; userSearchModel.UserQueryItem.UnitId = new NpcContext().CurrentUser.Unit.Id; var model = _userAction.InitializeUserListModel(userSearchModel.UserQueryItem); return View(model); }