private List<string> ListWords(String text) { List<string> result = null; DictionaryDataContext connect = new DictionaryDataContext(); result = (from cust in connect.Words where cust.code == text select cust.word).ToList<string>(); if (result.Count > 0) return result; else { result = new List<string>(); result.Add(""); return result; } }
private List <string> ListWords(String text) { List <string> result = null; DictionaryDataContext connect = new DictionaryDataContext(); result = (from cust in connect.Words where cust.code == text select cust.word).ToList <string>(); if (result.Count > 0) { return(result); } else { result = new List <string>(); result.Add(""); return(result); } }