Exemplo n.º 1
0
        public Car Add(CreateCar createCar)
        {
            Car car = new Car();

            car.Brand     = createCar.Brand;
            car.ModelName = createCar.ModelName;
            car.Price     = createCar.Price;

            car = _carRepo.Create(car);

            return(car);
        }