public ActionResult Edit(ResourceDonation resourcedonation)
 {
     if (ModelState.IsValid)
     {
         db.Entry(resourcedonation).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.EventID = new SelectList(db.Events, "EventID", "Title", resourcedonation.EventID);
     ViewBag.UserID = new SelectList(db.Users, "UserID", "LastName", resourcedonation.UserID);
     return View(resourcedonation);
 }
        public ActionResult Create(ResourceDonation resourcedonation)
        {
            if (ModelState.IsValid)
            {
                db.ResourceDonations.Add(resourcedonation);
                db.SaveChanges();
                return RedirectToAction("Index");  
            }

            ViewBag.EventID = new SelectList(db.Events, "EventID", "Title", resourcedonation.EventID);
            ViewBag.UserID = new SelectList(db.Users, "UserID", "LastName", resourcedonation.UserID);
            return View(resourcedonation);
        }