예제 #1
0
        public async void AddCar(Car car)
        {
            var mapper = new CarMapper();
            var newCar = mapper.MapToServiceModel(car);

            await client.AddCarAsync(newCar);
        }
예제 #2
0
        public async void UpdateCar(Car car)
        {
            CarMapper mapper    = new CarMapper();
            var       uptadeCar = mapper.MapToServiceModel(car);

            await client.UpdateCarAsync(uptadeCar);

            client.Close();
        }