Ejemplo n.º 1
0
 public ActionResult <Pizza> Post(Pizza pizza)
 {
     if (pizza == null)
     {
         return(BadRequest("The Customer you are trying to add is empty"));
     }
     else
     {
         return(repo.AddPizza(pizza));
     }
 }