public OperationResult <string> Suburb2Area([FromUri] string country, [FromUri] string city, [FromUri] string suburb) { var result = new OperationResult <string>(true); if (country.ToUpper().Equals("NZ") && city.ToUpper().Equals("AUCKLAND")) { //get surburb for auckland var suburbRec = Suburb.Find(suburb, city, country, _db); if (suburbRec != null) { result.Data = suburbRec.Area; } else { result.Succeeded = false; result.Message = "不能识别Suburb"; } } else { result.Data = city; } return(result); }