public UnitOfWork(IAppDbContext dbContext,
                   IUserRepository userRepository, ITimeLogRepository timeLogRepository)
 {
     _dbContext = dbContext;
     Users      = userRepository;
     TimeLogs   = timeLogRepository;
 }
 public RequestTimeInConsumer(ITimeLogRepository repo)
 {
     _repo = repo;
 }
Exemplo n.º 3
0
 public TimesheetService(ITimeLogRepository timeLogRepository,
                         IEmployeeRepository employeeRepository)
 {
     _timeLogRepository  = timeLogRepository;
     _employeeRepository = employeeRepository;
 }
Exemplo n.º 4
0
        public UnitOfWork()
        {
            _context = new ApplicationDbContext();

            TimeLogs = new TimeLogRepository(_context);
        }
Exemplo n.º 5
0
 public TimeLogBusinessLayer()
 {
     this._timelogRepository = new TimeLogRepository();
 }
Exemplo n.º 6
0
 public TimeLogsController(ITimeLogRepository repository)
 {
     _repository = repository;
 }