public SqlDataService(PaylocityDbContext paylocityDbContext) { DependentsRepository = new DependentRepository(paylocityDbContext); DependentTypesRepository = new DependentTypeRepository(paylocityDbContext); EmployeesRepository = new EmployeeRepository(paylocityDbContext); EmployersRepository = new EmployerRepository(paylocityDbContext); }
public async static Task <List <Employee> > GetEmployees(PaylocityDbContext db) { return(await db.Paylocity_Employees.ToListAsync()); }
public EmployeeRepository(PaylocityDbContext paylocityDbContext) { _paylocityDbContext = paylocityDbContext; }
public DependentTypeRepository(PaylocityDbContext paylocityDbContext) { _paylocityDbContext = paylocityDbContext; }
public HomeController(ILogger <HomeController> logger, PaylocityDbContext db) { _db = db; _logger = logger; }