예제 #1
0
        public async Task <IActionResult> Create([FromBody] ProductModel productModel)
        {
            manager.Create(productModel);

            return(Ok());
        }
 public IActionResult Post([FromBody] Product product)
 {
     _productsManager.Create(product);
     return(NoContent());
 }