public UnitOfWork(CarServiceContext context, IMapper mapper)
 {
     _context                = context;
     this.Users              = new UserRepository(context, mapper);
     this.Reservations       = new ReservationRepository(context, mapper);
     this.Worksheets         = new WorksheetRepository(context, mapper);
     this.ReservationTypes   = new ReservationTypeRepository(context, mapper);
     this.Materials          = new MaterialRepository(context, mapper);
     this.WorksheetMaterials = new WorksheetMaterialRepository(context, mapper);
 }
Example #2
0
 public OrderService(CarServiceContext db)
 {
     _db = db;
 }
Example #3
0
 public CustomerService(CarServiceContext db)
 {
     _db = db;
 }