public static string GetPostCode(string postcode) { Postcode p = new Postcode(); Postcode returnP = p.GetLatLng(postcode); if (returnP != null) { return(string.Format("{0},{1}", returnP.Lat, returnP.Lng)); } else { return(string.Format("{0} not Found", postcode)); } }