public async Task <IActionResult> PutCategory(Guid id, CategoryEdit categoryEditDTO) { if (id != categoryEditDTO.Id) { return(BadRequest()); } var category = _categoryMapper.CategoryEdit(categoryEditDTO); await _bll.CategoryService.UpdateAsync(category); await _bll.SaveChangesAsync(); return(Ok()); }