Ejemplo n.º 1
0
        public IActionResult Index()
        {
            // from bonusrepo - GetAllCompanyWithEmployees
            IEnumerable <Company> companies = _bonRepo.GetAllCompanyWithEmployees();

            return(View(companies));
        }
Ejemplo n.º 2
0
        private void GetCompanies()
        {
            IEnumerable <Company> companies = _bonusRepo.GetAllCompanyWithEmployees();

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