public ActionResult KtmTicket()
        {
            ktmTable ktmTab = new ktmTable();

            ViewBag.Rate     = ktmTab.rate;
            ViewBag.DictLane = ktmTab.dictLane;
            return(View());
        }
 public ActionResult KtmTicket(CustomerResponse cr)
 {
     if (ModelState.IsValid)
     {
         return(RedirectToAction("CustomerDetails", new {
             OriginLoc = cr.Destination.OriginLoc,
             DestiLoc = cr.Destination.DestiLoc,
             WayLoc = cr.Destination.WayLoc,
             Citizen = cr.Destination.Citizen,
             Quantity = cr.Destination.Quantity
         }));
     }
     else
     {
         // there is a validation error
         ktmTable ktmTab = new ktmTable();
         ViewBag.Rate     = ktmTab.rate;
         ViewBag.DictLane = ktmTab.dictLane;
         return(View());
     }
 }