public ActionResult Edit(AutoplayerGame autoplayergame) { if (ModelState.IsValid) { context.Entry(autoplayergame).State = EntityState.Modified; context.SaveChanges(); return RedirectToAction("Index"); } return View(autoplayergame); }
public ActionResult Create(AutoplayerGame autoplayergame) { if (ModelState.IsValid) { context.AutoplayerGames.Add(autoplayergame); context.SaveChanges(); return RedirectToAction("Index"); } return View(autoplayergame); }