Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(Guid id)
        {
            Trip trip = TripDB.FindBy(x => x.TripID == id).Single();

            TripDB.Remove(trip);
            TripDB.Commit();
            return(RedirectToAction("Index"));
        }