Ejemplo n.º 1
0
        public async Task <IActionResult> GetArticleCategory(int pageIndex, int pageSize)
        {
            var response = await _categoryService.GetCategoryWithCountAsync(pageIndex, pageSize, true);

            if (response.Success)
            {
                return(Ok(response.Item));
            }
            else
            {
                return(BadRequest(response.Message));
            }
        }