Ejemplo n.º 1
0
 public ActionResult List(NpcMmsSendListModel listModel)
 {
     listModel.NpcMmsSendSearchModel.NpcMmsSendQueryItem.Pagination.PageIndex = PageIndex;
     listModel.NpcMmsSendSearchModel.NpcMmsSendQueryItem.UnitId = new NpcContext().CurrentUser.Unit.Id;
     var model = _npcMmsSendAction.InitializeNpcMmsSendListModel(listModel.NpcMmsSendSearchModel.NpcMmsSendQueryItem);
     return View(model);
 }
Ejemplo n.º 2
0
 public NpcMmsSendListModel InitializeNpcMmsSendListModel(NpcMmsSendQueryItem queryItem)
 {
     var model = new NpcMmsSendListModel();
     queryItem.UnitId = NpcContext.CurrentUser.Unit.Id;
     model.NpcMmsSendSearchModel.NpcMmsSendQueryItem = queryItem;
     model.NpcMmsSends = _npcMmsSendRepository.Query(queryItem);
     return model;
 }