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

            TripDB.Remove(trip);
            TripDB.Commit();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        //
        // GET: /Trip/Edit/5

        public ActionResult Edit(Guid id)
        {
            Trip trip = TripDB.FindBy(x => x.TripID == id).Single();

            return(View(trip));
        }
Exemple #3
0
        //
        // GET: /Trip/Details/5

        public ViewResult Details(Guid id)
        {
            Trip trip = TripDB.FindBy(x => x.TripID == id).Single();

            return(View(trip));
        }