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); }
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)); }
public RentACarRequestBody(int vehicleId, int customerId, Desktop.VehicleServiceReference.Rentalinformation rental) { this.vehicleId = vehicleId; this.customerId = customerId; this.rental = rental; }