Esempio n. 1
0
        public ActionResult DeleteConcert(int id)
        {
            TourBL      tourBL   = new TourBL();
            List <Tour> postList = tourBL.GetTour();
            Tour        tour     = postList.Where(u => u.TourId == id).Single();

            tourBL.DeleteConcert(tour);

            TourVM t = new TourVM();

            t.tourList = tourBL.GetTour();

            return(RedirectToAction("Tour", "Home", t));
        }
Esempio n. 2
0
        public ActionResult EditConcert(int id)
        {
            TourBL      tourBL   = new TourBL();
            List <Tour> postList = tourBL.GetTour();
            Tour        tour     = postList.Where(u => u.TourId == id).Single();

            return(View(tour));
        }
Esempio n. 3
0
        public ActionResult Tour()
        {
            TourBL tourBL = new TourBL();
            TourVM tour   = new TourVM();

            tour.tourList = tourBL.GetTour();

            return(View(tour));
        }