예제 #1
0
        public async Task <IActionResult> Add([FromBody] Category model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var category = await _categoryService.AddCategoryAsync(model);

            return(Ok());
        }