Example #1
0
        public async Task <ApiResult <ArticleTypeResponse> > Handle(GetAllArticleTypesQuery request, CancellationToken cancellationToken)
        {
            IQueryable <ArticleTypeResponse> result = _articleTypeService.GetArticleTypesQuery();

            return(await ApiResult <ArticleTypeResponse> .CreateAsync(
                       result,
                       request.Data.PageIndex,
                       request.Data.PageSize,
                       request.Data.SortColumn,
                       request.Data.SortOrder,
                       request.Data.FilterColumn,
                       request.Data.FilterQuery));
        }