public ActionResult Create(BandMember bandmember) { if (ModelState.IsValid) { db.BandMembers.Add(bandmember); db.SaveChanges(); return RedirectToAction("Index"); } return View(bandmember); }
public ActionResult Edit(BandMember bandmember) { if (ModelState.IsValid) { db.Entry(bandmember).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(bandmember); }