Beispiel #1
0
 public ActionResult CancelCar(string reservationId)
 {
     var resultsInfo = new ResultsInfo();
     CarServiceClient carSvc = new CarServiceClient();
     var resultInfo = new ResultsInfo();
     var cancelResponse =
         carSvc.CancelCar(new LoginHeader { UserName = "******", Password = "******", Culture = "en-US", Version = "1" }, Convert.ToInt64(reservationId), out resultInfo);
     CarCancelModel carCancelModel = new CarCancelModel();
     carCancelModel.CancellationStatus = cancelResponse;
     return View(carCancelModel);
 }
Beispiel #2
0
        public ActionResult CancelCar(string reservationId)
        {
            var resultsInfo         = new ResultsInfo();
            CarServiceClient carSvc = new CarServiceClient();
            var resultInfo          = new ResultsInfo();
            var cancelResponse      =
                carSvc.CancelCar(new LoginHeader {
                UserName = "******", Password = "******", Culture = "en-US", Version = "1"
            }, Convert.ToInt64(reservationId), out resultInfo);
            CarCancelModel carCancelModel = new CarCancelModel();

            carCancelModel.CancellationStatus = cancelResponse;
            return(View(carCancelModel));
        }