Ejemplo n.º 1
0
 public ActionResult <IEnumerable <Ingredient> > GetIngredientsByRecipeId(int id)
 {
     try
     {
         return(Ok(_ingredientsService.GetIngredientsByRecipeId(id)));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }