Exemple #1
0
 public CustomersController(BikeRentalDbContext context)
 {
     _context = context;
 }
Exemple #2
0
 public Repository(BikeRentalDbContext context)
 {
     _context  = context;
     _entities = _context.Set <T>();
 }
 public RentalsController(BikeRentalDbContext context, ICostCalculator calculator)
 {
     _context    = context;
     _calculator = calculator;
 }
Exemple #4
0
 public BikesController(BikeRentalDbContext context)
 {
     _context = context;
 }
 public RentalsController(BikeRentalDbContext context, ICalculation calculation)
 {
     _context         = context;
     this.calculation = calculation;
 }