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); }
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; }