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