コード例 #1
0
        public async Task <ActionResult> DeleteCategory(int id)
        {
            var product = await _repo.DeleteCategoryAsync(id);

            if (product != null)
            {
                return(Ok());
            }
            return(NotFound());
        }