public async Task <ActionResult <Category> > DeleteCategoryType(string id) { try { var result = await _categoryManager.DeleteCategoryType(id); return(result); } catch (Exception ex) { _logger.LogError("An error has been thrown in CategoryController:DeleteCategoryType"); return(BadRequest(ex)); } }