public async void AddCar(Car car) { var mapper = new CarMapper(); var newCar = mapper.MapToServiceModel(car); await client.AddCarAsync(newCar); }
public async void UpdateCar(Car car) { CarMapper mapper = new CarMapper(); var uptadeCar = mapper.MapToServiceModel(car); await client.UpdateCarAsync(uptadeCar); client.Close(); }