public IActionResult Index() { // from bonusrepo - GetAllCompanyWithEmployees IEnumerable <Company> companies = _bonRepo.GetAllCompanyWithEmployees(); return(View(companies)); }
private void GetCompanies() { IEnumerable <Company> companies = _bonusRepo.GetAllCompanyWithEmployees(); foreach (Company company in companies) { _companies.Add(company); } }