public ActionResult Edit(Donor Donors) { if (ModelState.IsValid) { db.Entry(Donors).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(Donors); }
public ActionResult Create(Donor Donors) { if (ModelState.IsValid) { db.Donors.Add(Donors); db.SaveChanges(); return RedirectToAction("Index"); } return View(Donors); }
// // GET: /Donors/Create public ActionResult Create() { Donor Donors = new Donor(); return View(Donors); }