Ejemplo n.º 1
0
        public async void GetCars()
        {
            var cars = await client.GetCarsAsync();

            Cars.Clear();

            foreach (var car in cars)
            {
                Car newCar = new Car(car.Id, car.Brand, car.Model, car.TotalCost, car.YearOfProduction, car.Mileage,
                                     car.Fuel, car.CarType, car.Seats, car.Color, car.CarStatus);

                Cars.Add(newCar);
            }
        }