コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public async Task <IActionResult> Index()
        {
            var ss = User.Claims;

            ViewBag.Node = await _nodeServer.GetAllNode();

            ViewBag.Time = DateTime.Now.Date;
            return(View());
        }
コード例 #2
0
        public async Task <List <NodeViewModel> > GetAllNodeName()
        {
            var entity = (from node in await _nodeServer.GetAllNode()
                          select new NodeViewModel
            {
                ID = node.ID,
                CreateTime = node.CreateTime,
                NodeName = node.NodeName,
                NodeDescribe = node.NodeDescribe,
                ParagraphCount = _paragrphNodeServer.FinAll().Where(x => x.NodeId == node.ID).Select(x => x.ParagraphId).Count()
            }).ToList();

            return(entity);
        }