Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 //
 // 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);
 }