Beispiel #1
0
        public async Task <IActionResult> Post(CategoryViewModel model)
        {
            if (ModelState.IsValid)
            {
                await _categoryServices.AddNewAsync(model);

                return(Ok());
            }
            return(BadRequest(ModelState));
        }