public IActionResult Create(Pizza newPizza) { _context.Pizza.Add(newPizza); _context.SaveChanges(); return(StatusCode(201, newPizza)); }
public IActionResult Create(Topping newTopping) { _context.Topping.Add(newTopping); _context.SaveChanges(); return(StatusCode(201, newTopping)); }
public IActionResult Create(Customer newCustomer) { _context.Customer.Add(newCustomer); _context.SaveChanges(); return(StatusCode(201, newCustomer)); }