コード例 #1
0
        public async Task <PageViewModel <GameStrategyViewModel> > GetAllByGameNodeID([FromHeader] SelectGameStrategyEntity selectEntity)
        {
            var result = await _gameStrategyServer.GetGameStrategyByNodeID(selectEntity.GameNodeID);

            PageListServer <GameStrategyViewModel> pageListServer = new PageListServer <GameStrategyViewModel>();
            var pageViewModel = pageListServer.GetPageList(result, selectEntity.PageIndex, selectEntity.PageSize);

            return(pageViewModel);
        }
コード例 #2
0
        public async Task <PageViewModel <ParagraphViewModel> > GetAll([FromHeader] SelectParagrphEntity selectEntity)
        {
            var result = await _paragraphServer.GetAllParagraphAsync(selectEntity);

            PageListServer <ParagraphViewModel> pageListServer = new PageListServer <ParagraphViewModel>();
            var resultViewModel = pageListServer.
                                  GetPageList(result, selectEntity.PageIndex, selectEntity.PageSize);

            return(resultViewModel);
        }