Exemple #1
0
        public UTCService.Car MapToServiceModel(Models.Car _car)
        {
            UTCService.Car car = new UTCService.Car();

            car.Id               = _car.Id;
            car.Brand            = _car.Brand;
            car.CarStatus        = _car.CarStatus;
            car.CarType          = _car.CarType;
            car.Color            = _car.Color;
            car.Fuel             = _car.Fuel;
            car.Mileage          = _car.Mileage;
            car.Model            = _car.Model;
            car.Seats            = _car.Seats;
            car.TotalCost        = _car.TotalCost;
            car.YearOfProduction = _car.YearOfProduction;

            return(car);
        }
Exemple #2
0
 public void UpdateCar(UTCService.Car newCar)
 {
     base.Channel.UpdateCar(newCar);
 }
Exemple #3
0
 public System.Threading.Tasks.Task UpdateCarAsync(UTCService.Car newCar)
 {
     return base.Channel.UpdateCarAsync(newCar);
 }
Exemple #4
0
 public void AddCar(UTCService.Car newCar)
 {
     base.Channel.AddCar(newCar);
 }