public async Task <ActionResult> Update(int id, CategoryDto categoryDto) { await _categoryService.UpdateAsync(id, categoryDto); return(Ok()); }
public async Task <ActionResult> Update(int id, ProductDto productDto) { await _productService.UpdateAsync(id, productDto); return(Ok()); }