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); }
public OrderService(CarServiceContext db) { _db = db; }
public CustomerService(CarServiceContext db) { _db = db; }