Example #1
0
 public VehiclesController(GarageMVCContext context, IMapper mapper, IOptions <PriceSettings> priceSettings, IOptions <GarageSettings> garageSettings)
 {
     _context            = context;
     this.priceSettings  = priceSettings;
     this.garageSettings = garageSettings;
     this.mapper         = mapper;
 }
        //private const int garageSize = 50;

        public ParkedVehiclesController(GarageMVCContext context, IOptions <PriceSettings> priceSettings, IOptions <GarageSettings> garageSettings)
        {
            _context            = context;
            this.priceSettings  = priceSettings;
            this.garageSettings = garageSettings;
            vehicleWidth        = new Dictionary <VehicleType, int>
            {
                { VehicleType.Car, 1 },
                { VehicleType.Motorcycle, 1 },
                { VehicleType.Bus, 2 },
                { VehicleType.Airplane, 3 },
                { VehicleType.Boat, 3 }
            };
        }
Example #3
0
 public VehicleType2Controller(GarageMVCContext context)
 {
     _context = context;
 }
Example #4
0
 public VehicleTypeSelectService(GarageMVCContext context)
 {
     this.context = context;
 }
Example #5
0
 public MembersController(GarageMVCContext context, IMapper mapper)
 {
     _context    = context;
     this.mapper = mapper;
 }
 public ParkedVehiclesController(GarageMVCContext context)
 {
     db = context;
 }