public IActionResult Delete([FromRoute] Guid categoryId) { _categoryAppService.DeleteCategory(UserId, categoryId); return(Ok()); }
public async Task Delete(int id) { await _categoryService.DeleteCategory(id); }