public CarDetailsViewModel(BLL.Cars.Car car, EnquiryViewModel enquiry) { this.Car = car; this.Enquiry = enquiry; this.Enquiry.CarID = this.Car.CarID; }
public CarDetailsViewModel(BLL.Cars.Car car) { this.Car = car; this.Enquiry = new EnquiryViewModel(car.CarID); }