public UnitOfWork(CallCenterContext context) { _context = context; Employees = new EmployeeRepository(_context); Designations = new DesignationRepository(_context); Reclamations = new ReclamationRepository(_context); }
public UnitOfWork(ApplicationDbContext context) { _context = context; Employees = new EmployeeRepository(_context); Designations = new DesignationRepository(_context); Departments = new DepartmentRepository(_context); Reclamations = new ReclamationRepository(_context); SoldDevices = new SoldDevicesRepository(_context); }