public IActionResult PutSubcategory(int id, [FromBody] SubcategoryDto subcategory)
 {
     try
     {
         _subcategoryService.UpdateSubcategory(id, subcategory);
         return(Ok());
     }
     catch (Exception ex)
     {
     }
     return(BadRequest(""));
 }