Exemple #1
0
 public AddModel(VehicleStore vehicleStore, CustomerStore customerStore)
 {
     VehicleStore  = vehicleStore;
     CustomerStore = customerStore;
     Customers     = new List <Customer>();
     Customers     = CustomerStore.GetCustomers();
 }
Exemple #2
0
 public IndexModel(CarStore carStore, CustomerStore customerStore)
 {
     CarStore      = carStore;
     Cars          = CarStore.GetCars();
     CustomerStore = customerStore;
     Customers     = CustomerStore.GetCustomers();
 }
Exemple #3
0
 public IndexModel(VehicleStore vehicleStore, CustomerStore customerStore, InsuranceStore insuranceStore)
 {
     VehicleStore   = vehicleStore;
     CustomerStore  = customerStore;
     InsuranceStore = insuranceStore;
     Vehicles       = VehicleStore.GetVehicles();
     Customers      = CustomerStore.GetCustomers();
     Insurances     = InsuranceStore.GetInsurances();
 }
Exemple #4
0
        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();
        }
Exemple #5
0
 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();
 }