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 } }; }
public VehicleType2Controller(GarageMVCContext context) { _context = context; }
public VehicleTypeSelectService(GarageMVCContext context) { this.context = context; }
public MembersController(GarageMVCContext context, IMapper mapper) { _context = context; this.mapper = mapper; }
public ParkedVehiclesController(GarageMVCContext context) { db = context; }