public ActionResult Home(string locationBox) { Parsing parser = new Parsing(); var resultlist = parser.GetLocation(locationBox); //MAPPING if (resultlist.Count != 0) { var resultCompany = new List <Company>(); foreach (var item in resultlist) { var companylist = new Company { Name = item.Name, Address = item.Address }; resultCompany.Add(companylist); } return(View(resultCompany)); } else { return(View("NoCompanyFound")); } }