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