コード例 #1
0
ファイル: VehiclesController.cs プロジェクト: ulfsv/Garage3.0
 public VehiclesController(GarageMVCContext context, IMapper mapper, IOptions <PriceSettings> priceSettings, IOptions <GarageSettings> garageSettings)
 {
     _context            = context;
     this.priceSettings  = priceSettings;
     this.garageSettings = garageSettings;
     this.mapper         = mapper;
 }
コード例 #2
0
        //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 }
            };
        }
コード例 #3
0
 public VehicleType2Controller(GarageMVCContext context)
 {
     _context = context;
 }
コード例 #4
0
 public VehicleTypeSelectService(GarageMVCContext context)
 {
     this.context = context;
 }
コード例 #5
0
ファイル: MembersController.cs プロジェクト: ulfsv/Garage3.0
 public MembersController(GarageMVCContext context, IMapper mapper)
 {
     _context    = context;
     this.mapper = mapper;
 }
コード例 #6
0
 public ParkedVehiclesController(GarageMVCContext context)
 {
     db = context;
 }