public ActionResult Create(ShowModels showmodels) { if (ModelState.IsValid) { db.Shows.Add(showmodels); db.SaveChanges(); return RedirectToAction("Shows"); } return View(showmodels); }
public ActionResult Edit(ShowModels showmodels) { if (ModelState.IsValid) { db.Entry(showmodels).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Shows"); } return View(showmodels); }