Ejemplo n.º 1
0
        public ActionResult KtmTicket()
        {
            ktmTable ktmTab = new ktmTable();

            ViewBag.Rate     = ktmTab.rate;
            ViewBag.DictLane = ktmTab.dictLane;
            return(View());
        }
Ejemplo n.º 2
0
 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());
     }
 }