public ActionResult StateInfo(string CountryCode) { ConsolidatedCountryInfo _consolidatedData = new ConsolidatedCountryInfo(); var countryHandler = new CountryHandler(); var states = countryHandler.GetStatesListByCountry(CountryCode); states = states.Replace("\n", ""); Country countryInfo = countryHandler.GetCountryInfo(CountryCode); _consolidatedData.Country = countryInfo; _consolidatedData.StateList = states; return(View(_consolidatedData)); }