public ActionResult DeleteConfirmed(Guid id) { Trip trip = TripDB.FindBy(x => x.TripID == id).Single(); TripDB.Remove(trip); TripDB.Commit(); return(RedirectToAction("Index")); }
// // GET: /Trip/Edit/5 public ActionResult Edit(Guid id) { Trip trip = TripDB.FindBy(x => x.TripID == id).Single(); return(View(trip)); }
// // GET: /Trip/Details/5 public ViewResult Details(Guid id) { Trip trip = TripDB.FindBy(x => x.TripID == id).Single(); return(View(trip)); }