Exemplo n.º 1
0
 public ActionResult CancelList(int passport)
 {
     ViewData["error"] = "";
     try
     {
         DatabaseService ld = new DatabaseService();
         if (ld.getBookingListCount(passport) > 0)
         {
             List<Models.Booking> booklist = ld.getBookingList(passport);
             ViewData.Model = booklist;
         }
         else
         {
             ViewData["error"] = "No booking found for cancellation";
         }
     }
     catch (Exception)
     {
         ViewData["error"] = "Please enter two passport number";
     }
     return View();
 }