Пример #1
0
        public IActionResult Index()
        {
            // from bonusrepo - GetAllCompanyWithEmployees
            IEnumerable <Company> companies = _bonRepo.GetAllCompanyWithEmployees();

            return(View(companies));
        }
Пример #2
0
        private void GetCompanies()
        {
            IEnumerable <Company> companies = _bonusRepo.GetAllCompanyWithEmployees();

            foreach (Company company in companies)
            {
                _companies.Add(company);
            }
        }