Example #1
0
 public ActionResult List(NpcMmsListModel listModel)
 {
     listModel.NpcMmsSearchModel.NpcMmsQueryItem.Pagination.PageIndex = PageIndex;
     listModel.NpcMmsSearchModel.NpcMmsQueryItem.UnitId = new NpcContext().CurrentUser.Unit.Id;
     var model = _npcMmsAction.InitializeNpcMmsListModel(listModel.NpcMmsSearchModel.NpcMmsQueryItem);
     return View(model);
 }
Example #2
0
 public NpcMmsListModel InitializeNpcMmsListModel(NpcMmsQueryItem queryItem)
 {
     var model = new NpcMmsListModel();
     queryItem.UnitId = NpcContext.CurrentUser.Unit.Id;
     model.NpcMmsSearchModel.NpcMmsQueryItem = queryItem;
     model.NpcMmses = _npcMmsRepository.Query(queryItem);
     return model;
 }