예제 #1
0
        public IActionResult AddNewProduct([FromBody] ProductViewModel productViewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(productViewModel));
            }

            _categoryAppService.AddNewProduct(productViewModel);

            return(Response(productViewModel));
        }