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)); }
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)); }
public ActionResult Tour() { TourBL tourBL = new TourBL(); TourVM tour = new TourVM(); tour.tourList = tourBL.GetTour(); return(View(tour)); }