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)); }
//[MultipleButton(Name = "action", Argument = "GetBookingDetail")] public ActionResult GetBookingDetail(FormCollection collection) { var Rgid = collection["productId"]; Common.Tourflowsvc.ActivityBookFlowClient client = new Common.Tourflowsvc.ActivityBookFlowClient(); Common.Tourflowsvc.AuthenticationHeader authentication = new Common.Tourflowsvc.AuthenticationHeader(); authentication.LoginName = "Tra105"; authentication.Password = "******"; var getRGInfoRequest = new GetRGInfoRequest(); getRGInfoRequest.RGInfoRequestMessage = new Common.Tourflowsvc.RGInfoRequest(); RGInfoRequest rGInfoRequest = new RGInfoRequest(); rGInfoRequest.RGId = int.Parse(Rgid); var response = client.GetRGInfo(authentication, rGInfoRequest); Session["GetRGInfo"] = response.ResGroup; return(View(response)); }
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); }