Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <ActionResult <Product> > PostProduct(Product product) { product = await _inventoryService.CreateProductAsync(product); if (product == null) { return(BadRequest()); } return(CreatedAtAction(nameof(GetProduct), new { id = product.Id }, product)); }