public async Task <ActionResult <PageablePresenter <SubcategoryPresenter> > > Get(long categoryCode, [FromQuery] int page = 1, [FromQuery] int size = 15)
        {
            try
            {
                var result = await _subcategoryService.GetAllByCategory(categoryCode, page, size);

                if (result.IsNullOrEmpty())
                {
                    return(NotFound());
                }
                var subcategories = new PageablePresenter <SubcategoryPresenter>(page, result.TotalPages);
                result.ForEach(r => subcategories.Content.Add(new SubcategoryPresenter(r)));
                return(subcategories);
            }
            catch (Exception e)
            {
                _logger.LogError(e.Message);
                _logger.LogError(e.StackTrace);
                return(BadRequest(e.Message));
            }
        }