public BusinessLayer() { _candRepository = new CandidateRepository(); _profileRepository = new ProfileInfoRepository(); _userRepository = new UserRepository(); _roleRepository = new RoleRepository(); _candStatusRepository = new CandidateStatusRepository(); _searchApplicantRepository = new SearchApplicantRepository(); _companyRepository = new CompanyRepository(); _industryRepository = new IndustryRepository(); _userRoleRepository = new UserRoleRepository(); }
public BusinessLayer(ICandidateRepository candRepository, IProfileInfoRepository profileRepository, IUserRepository userRepository, IRoleRepository roleRepository, ICandidateStatusRepository candStatusRepository, ICompanyRepository companyRepository, IIndustryRepository industryRepository, IUserRoleRepository userRoleRepository) { _candRepository = candRepository; _profileRepository = profileRepository; _userRepository = userRepository; _roleRepository = roleRepository; _candStatusRepository = candStatusRepository; _companyRepository = companyRepository; _industryRepository = industryRepository; _userRoleRepository = userRoleRepository; }