public ActionResult Edit(int id) { MenuDrinkStarersVM model = new MenuDrinkStarersVM() { menuDrinkStarersList = db.menuDrinkStarers.ToList(), menuDrinkStarersSingle = db.menuDrinkStarers.FirstOrDefault(m => m.Id == id), Action = "Edit" }; return(View("Index", model)); }
public ActionResult Index() { MenuDrinkStarersVM model = new MenuDrinkStarersVM() { menuDrinkStarersList = db.menuDrinkStarers.ToList(), menuDrinkStarersSingle = null, Action = "Create" }; return(View(model)); }