Ejemplo n.º 1
0
 public void Post([FromBody] List <Ingredient> ingredientsList)
 {
     if (Ingredient.CheckInventoryFill(ingredientsList))
     {
         Ingredient.FillInventory(ingredientsList, DataComunications.Ingredients);
     }
     else
     {
         throw new HttpResponseException(400, "There is ingredients with negative value");
     }
 }