public void SaveRecipeEdits(RecipeAdapter recipeSummary)
        {
            //_db.RecipeIngredients.NameAddObject(recipeSummary);
            //_db.RecipeIngredients.AddObject(recipeIngredient);

            //_db.Recipes.Name = recipeSummary.Name;

            //_db.RecipeIngredients = recipeSummary.IngredientList;

            _db.SaveChanges();
            //return RedirectToAction("Index");

            //return View(ingredient);
            throw new NotImplementedException();
        }
 public ActionResult Edit(RecipeAdapter recipeSummary, FormCollection collection)
 {
     try
     {
         // TODO: Add update logic here
         if (ModelState.IsValid)
         {
             repository.SaveRecipeEdits(recipeSummary);
         }
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }