예제 #1
0
 public void AddCarInDB(CarViewModel _viewModel)
 {
     _carRepository.AddCarInDB(new Car()
     {
         Description     = _viewModel.Description,
         IsBought        = false,
         ManufactureYear = _viewModel.ManufactureYear,
         Name            = _viewModel.Name,
         Price           = _viewModel.Price
     });
 }