public static List <CountryColourVJ> GetCountryNames(String CountryId) { List <String> lstCountryId = new List <String>(); lstCountryId = CountryId.Split(',').ToList(); var result = DefaultListDSForPJ.GetCountryNames(lstCountryId); return(result); }
public static string GetCountryName(string CountryId) { List <String> lstCountryId = new List <String>(); lstCountryId = CountryId.Split(',').ToList(); var listresponse = DefaultListDSForPJ.GetCountryNames(lstCountryId); string result = string.Join(",", listresponse.Select(r => r.CountryNames)); return(result); }