コード例 #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);
 }
コード例 #2
0
ファイル: NpcMmsSendAction.cs プロジェクト: chenchunwei/NPC
 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;
 }