public AddModel(VehicleStore vehicleStore, CustomerStore customerStore) { VehicleStore = vehicleStore; CustomerStore = customerStore; Customers = new List <Customer>(); Customers = CustomerStore.GetCustomers(); }
public IndexModel(CarStore carStore, CustomerStore customerStore) { CarStore = carStore; Cars = CarStore.GetCars(); CustomerStore = customerStore; Customers = CustomerStore.GetCustomers(); }
public IndexModel(VehicleStore vehicleStore, CustomerStore customerStore, InsuranceStore insuranceStore) { VehicleStore = vehicleStore; CustomerStore = customerStore; InsuranceStore = insuranceStore; Vehicles = VehicleStore.GetVehicles(); Customers = CustomerStore.GetCustomers(); Insurances = InsuranceStore.GetInsurances(); }
public IndexModel(VehicleStore vehicleStore, CustomerStore customerStore) { VehicleStore = vehicleStore; CustomerStore = customerStore; Customer = new Customer(); Vehicle = new Vehicle(); Insurance = new Insurance(); Customers = new List <Customer>(); Vehicles = new List <Vehicle>(); Vehicles = VehicleStore.GetVehicles(); Customers = CustomerStore.GetCustomers(); }
public IndexModel(CustomerStore customerStore) { this.CustomerStore = customerStore; Customers = customerStore.GetCustomers(); }
public IndexModel(IConfiguration configuration, CustomerStore customerStore, CarStore carStore) { Configuration = configuration; CustomerStore = customerStore; Customers = CustomerStore.GetCustomers(); }