Esempio n. 1
0
 public ActionResult Edit(Donor Donors)
 {
     if (ModelState.IsValid)
     {
         db.Entry(Donors).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(Donors);
 }
Esempio n. 2
0
        public ActionResult Create(Donor Donors)
        {
            if (ModelState.IsValid)
            {
                db.Donors.Add(Donors);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(Donors);
        }
Esempio n. 3
0
 //
 // GET: /Donors/Create
 public ActionResult Create()
 {
     Donor Donors = new Donor();
     return View(Donors);
 }