public ActionResult Edit([Bind(Include = "EventID,EventType,DateOfEvent,Venue,NoOfGuest")] EventOrder eventOrder)
 {
     if (ModelState.IsValid)
     {
         db.Entry(eventOrder).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(eventOrder));
 }
Beispiel #2
0
 public ActionResult Edit(EventObj eventobj)
 {
     if (ModelState.IsValid)
     {
         db.Entry(eventobj).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(eventobj));
 }