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); }
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); }