public async Task UpdateProductCategory(ProductCategoryRequestDTO request)
        {
            var         requestClient = JsonSerializer.Serialize(request);
            HttpContent content       = new StringContent(requestClient, Encoding.UTF8, "application/json");
            var         httpResponse  = await _httpClient.PutAsync($"{_configure.Url}ProductCategory", content);

            if (!httpResponse.IsSuccessStatusCode)
            {
                throw new Exception("Cannot retrieve tasks");
            }
        }
 public IActionResult UpdateProductCategory(ProductCategoryRequestDTO request)
 {
     _service.UpdateProductCategory(request);
     return(RedirectToAction("Index"));
 }