public async Task <ActionResult> Delete(int id) { await _categoryService.DeleteByIdAsync(id); return(Ok()); }