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