Exemple #1
0
        public ActionResult GetBookingDetail(string rgId)
        {
            CarServiceClient carSvc = new CarServiceClient();
            var getRGInfoRequest    = new GetRGInfoRequest()
            {
                nRGID                 = Convert.ToInt32(rgId),
                Notifications         = new Notifications(),
                SendDrivingDirections = true
            };
            var resultsInfo    = new ResultsInfo();
            var rgInfoResponse =
                carSvc.GetRGInfo(
                    new LoginHeader {
                UserName = "******", Password = "******", Culture = "en-US", Version = "1"
            },
                    getRGInfoRequest, out resultsInfo);

            return(View(rgInfoResponse));
        }
        public ActionResult GetBookingDetail(string rgId)
        {
            CarServiceClient carSvc = new CarServiceClient();
            var getRGInfoRequest = new GetRGInfoRequest()
            {
                nRGID = Convert.ToInt32(rgId),
                Notifications = new Notifications(),
                SendDrivingDirections = true
            };
            var resultsInfo = new ResultsInfo();
            var rgInfoResponse =
                carSvc.GetRGInfo(
                    new LoginHeader { UserName = "******", Password = "******", Culture = "en-US", Version = "1" },
                    getRGInfoRequest, out resultsInfo);

            return View(rgInfoResponse);
        }