Beispiel #1
0
 public IdentityUnitOfWork(string connectionString)
 {
     db                 = new ApplicationContext(connectionString);
     userManager        = new ApplicationUserManager(new UserStore <ApplicationUser>(db));
     roleManager        = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db));
     workerManager      = new WorkerManager(db);
     workTimeManager    = new WorkTimeManager(db);
     imageManager       = new ImageManager(db);
     reservationManager = new ReservationManager(db);
 }
Beispiel #2
0
 public IdentityUnitOfWork(string connectionString)
 {
     _db                 = new ApplicationContext(connectionString);
     _userManager        = new ApplicationUserManager(new UserStore <ApplicationUser>(_db));
     _roleManager        = new ApplicationRoleManager(new RoleStore <ApplicationRole>(_db));
     _workerManager      = new WorkerManager(_db);
     _workTimeManager    = new WorkTimeManager(_db);
     _imageManager       = new ImageManager(_db);
     _reservationManager = new ReservationManager(_db);
     _confirmReservation = new ConfirmReservationManager(_db);
 }
 public WorkTimeController(IAccountManager accountManager, IWorkTimeManager workTimeManager)
 {
     _accountManager  = accountManager;
     _workTimeManager = workTimeManager;
 }