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); }
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)); }