Пример #1
0
        public async Task <ActionResult> CreateProduct([FromBody] Product product)
        {
            await _productRepositories.Create(product);

            return(CreatedAtRoute("GetProduct", new { id = product.Id }, product));
        }