/// <summary> /// Gets all the recipes stored in the database. /// </summary> /// <returns>List of references to Recipe-objects containing information about the recipes.</returns> public IEnumerable <Recipe> GetRecipes() { return(RecipeDAL.GetRecipes()); }
public ActionResult Index(string type = null, string input = null) { ViewBag.results = RecipeDAL.GetRecipes($"?{type}{input}")["results"]; return(View()); }