Exemplo n.º 1
0
 static VehiclesController()
 {
     Utilities.Variables systemVars = new Utilities.Variables();
     parkingPrice   = systemVars.ParkingPrice;
     GarageCapacity = systemVars.GarageCapacity;
     loadFactor     = new float[GarageCapacity];
 }
Exemplo n.º 2
0
 public ActionResult Index()
 {
     Utilities.Variables vars = new Utilities.Variables();
     ViewBag.Parkingspots = vars.GarageCapacity - db.Vehicles.Count();
     ViewBag.ParkingPrice = vars.ParkingPrice;
     return(View());
 }
Exemplo n.º 3
0
 public VehiclesController()
 {
     this.vars = new Utilities.Variables();
     this.db   = new VehicleContext();
 }