public async void CheckOutVehicle() { var response = await vehicleServices.CheckOutVehicle(this.Vehicle); if (!response.IsSuccess) { await Application.Current.MainPage.DisplayAlert( "Error", response.Message, "Aceptar"); return; } Vehicle vehicleResponse = (Vehicle)response.Result; await Application.Current.MainPage.DisplayAlert( "Correcto", string.Format("{0} ${1}", MessageConstants.VehicleCheckOut, vehicleResponse.Payment), "Aceptar"); await Application.Current.MainPage.Navigation.PopAsync(); return; }
public async Task <Response> CheckOutVehicle(Vehicle vehicle) { var response = await vehicleServices.CheckOutVehicle(vehicle); return(response); }