public ViewResult Persons() { var companyList = new CompanyServices().GetAllOrderedCompanies() ?? new List <Company>(); if (!companyList.Any()) { ViewBag.Title = "Persons' Information Set Up"; return(View(Tuple.Create(new List <Company>(), new List <Person>()))); } var personList = new PersonServices().GetAllOrderedPersons() ?? new List <Person>(); if (!personList.Any()) { ViewBag.Title = "Persons' Information Set Up"; return(View(Tuple.Create(companyList, new List <Person>()))); } personList.ForEach(m => { m.CompanyName = m.Company.Name; }); ViewBag.Title = "Manage Persons' Information"; return(View(Tuple.Create(companyList, personList))); }