コード例 #1
0
        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));
            }
        }