예제 #1
0
 public NodeRecordListModel InitializeNodeRecordListModel(NodeRecordQueryItem queryItem)
 {
     var model = new NodeRecordListModel();
     model.NodeRecordSearchModel.NodeRecordQueryItem = queryItem;
     model.NodeRecords = _nodeRecordRepository.Query(queryItem);
     return model;
 }
예제 #2
0
 public ActionResult List(NodeRecordListModel listModel)
 {
     listModel.NodeRecordSearchModel.NodeRecordQueryItem.Pagination.PageIndex = PageIndex;
     listModel.NodeRecordSearchModel.NodeRecordQueryItem.UnitId = new NpcContext().CurrentUser.Unit.Id;
     var model = _nodeRecordAction.InitializeNodeRecordListModel(listModel.NodeRecordSearchModel.NodeRecordQueryItem);
     return View(model);
 }