예제 #1
0
 /// <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());
 }
예제 #2
0
 public ActionResult Index(string type = null, string input = null)
 {
     ViewBag.results = RecipeDAL.GetRecipes($"?{type}{input}")["results"];
     return(View());
 }