public NodeRecordListModel InitializeNodeRecordListModel(NodeRecordQueryItem queryItem) { var model = new NodeRecordListModel(); model.NodeRecordSearchModel.NodeRecordQueryItem = queryItem; model.NodeRecords = _nodeRecordRepository.Query(queryItem); return model; }
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); }