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)); }
public ActionResult Edit(EventObj eventobj) { if (ModelState.IsValid) { db.Entry(eventobj).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(eventobj)); }