Ejemplo n.º 1
0
 //
 // GET: /Reg/Delete/5
 public ActionResult Delete(string id)
 {
     BTourGuideOp tourOp = new BTourGuideOp();
     List<AReg> regs = tourOp.GetRegistrations();
     AReg reg = regs.SingleOrDefault<AReg>(x => x.RegID == id);
     if(reg == null)
     {
         return HttpNotFound();
     }
     return View(reg);
 }
Ejemplo n.º 2
0
 //
 // GET: /Reg/Edit/5
 public ActionResult Edit(string id, DateTime RegBirthday)
 {
     BTourGuideOp tourOp = new BTourGuideOp();
     List<AReg> registrations = tourOp.GetRegistrations();
     AReg reg = registrations.Single<AReg>(x => x.RegID == id);
     return View(reg);
 }
Ejemplo n.º 3
0
 //
 // GET: /Reg/
 public ActionResult Index()
 {
     BTourGuideOp tourOp = new BTourGuideOp();
     List<AReg> registrations = tourOp.GetRegistrations();
     return View(registrations);
 }
Ejemplo n.º 4
0
 //
 // GET: /Reg/Details/5
 public ActionResult Details(string id)
 {
     BTourGuideOp tourOp = new BTourGuideOp();
     List<AReg> registrations = tourOp.GetRegistrations();
     AReg reg = registrations.Single<AReg>(x => x.RegID == id);
     return View(reg);
 }