public ActionResult EventDetails(string id, DateTime date) { BTourGuideOp tourOp = new BTourGuideOp(); AEvent tourEvent = tourOp.GetEvent(id, date); ATour tour = tourOp.GetTourByID(id); EventDetails ed = new EventDetails(); ed.eventInfo = tourEvent; ed.tourInfo = tour; return View(ed); }
public ActionResult RegForm(string id, DateTime date) { BTourGuideOp tourOp = new BTourGuideOp(); AEvent tourEvent = tourOp.GetEvent(id, date); string username = HttpContext.User.Identity.Name; AUser user = tourOp.GetUser(username); RegResponse rr = new RegResponse(); rr.EventInfo = tourEvent; rr.UserInfo = user; return View(rr); }
// // GET: /Event/Edit/5 public ActionResult Edit(string tourid, DateTime tourdate) { // Passing the current values to the view: BTourGuideOp tourOp = new BTourGuideOp(); AEvent tourEvent = tourOp.GetEvent(tourid, tourdate); if(tourEvent == null) return HttpNotFound(); return View(tourEvent); }