Esempio n. 1
0
 public ActionResult Records(RecordsModel recordsModel)
 {
     recordsModel.NodeRecordQueryItem.Pagination.PageIndex = PageIndex;
     recordsModel.NodeRecordQueryItem.UnitId = UnitId;
     var model = _indexAction.InitializeRecordsModel(recordsModel.NodeRecordQueryItem);
     return View(model);
 }
Esempio n. 2
0
 public object InitializeRecordsModel(NodeRecordQueryItem queryItem)
 {
     var model = new RecordsModel();
     model.NodeRecordQueryItem = queryItem;
     model.NodeRecordQueryItem.IsShow = true;
     model.NodeRecords = _nodeRecordRepository.Query(queryItem).ToList();
     model.ListTitle = "文章列表";
     var nodeId = queryItem.NodeId ?? queryItem.NodeIdLike;
     if (nodeId.HasValue)
     {
         var node = _nodeRepository.Find(nodeId.Value);
         model.ListTitle = node.Name;
     }
     return model;
 }