Пример #1
0
 public bool RentACar(int vehicleId, int customerId, Desktop.VehicleServiceReference.Rentalinformation rental)
 {
     Desktop.VehicleServiceReference.RentACarRequest inValue = new Desktop.VehicleServiceReference.RentACarRequest();
     inValue.Body            = new Desktop.VehicleServiceReference.RentACarRequestBody();
     inValue.Body.vehicleId  = vehicleId;
     inValue.Body.customerId = customerId;
     inValue.Body.rental     = rental;
     Desktop.VehicleServiceReference.RentACarResponse retVal = ((Desktop.VehicleServiceReference.VehicleServiceServiceSoap)(this)).RentACar(inValue);
     return(retVal.Body.RentACarResult);
 }
Пример #2
0
 public System.Threading.Tasks.Task <Desktop.VehicleServiceReference.RentACarResponse> RentACarAsync(int vehicleId, int customerId, Desktop.VehicleServiceReference.Rentalinformation rental)
 {
     Desktop.VehicleServiceReference.RentACarRequest inValue = new Desktop.VehicleServiceReference.RentACarRequest();
     inValue.Body            = new Desktop.VehicleServiceReference.RentACarRequestBody();
     inValue.Body.vehicleId  = vehicleId;
     inValue.Body.customerId = customerId;
     inValue.Body.rental     = rental;
     return(((Desktop.VehicleServiceReference.VehicleServiceServiceSoap)(this)).RentACarAsync(inValue));
 }
Пример #3
0
 public RentACarRequestBody(int vehicleId, int customerId, Desktop.VehicleServiceReference.Rentalinformation rental)
 {
     this.vehicleId  = vehicleId;
     this.customerId = customerId;
     this.rental     = rental;
 }