Example #1
0
 public RedirectToActionResult AddRecipe(Recipe recipe)
 {
     System.Diagnostics.Debug.WriteLine("1.Saving  recipe?");
     repository.AddItem(recipe);
     System.Diagnostics.Debug.WriteLine(recipe.ID);
     System.Diagnostics.Debug.WriteLine(recipe.Name);
     System.Diagnostics.Debug.WriteLine(recipe.Cuisine);
     return(RedirectToAction("", repository));
 }