Esempio n. 1
0
 public IActionResult CreateProduct(ProductModel productModel)
 {
     if (ModelState.IsValid)
     {
         var product = _productModelFactory.PrepareProductEntity(productModel);
         _productService.Create(product);
     }
     return(View());
 }