public IActionResult Index() { var listCompany = _enterpriseService.getListEnt("", "", 1); List <CompanyModel> model = new List <CompanyModel>(); listCompany.ForEach(c => { model.Add(new CompanyModel() { EntID = c.ID, CompanyName = c.EnterpriseInfo.Company_Name, Area = c.EnterpriseInfo.Area, Email = c.EnterpriseInfo.Email }); }); return(View(model)); }