public static string GetWord(string wordId, string lang) { Word word = WordGetter.GetWordFromDb(wordId); if (word != default(Word)) { //send to the controller to be displayed return(Displayer <object>(word.Results)); } else { string json = APIQueries.GetEntries(lang, wordId); word = ConvertJsonToObject(json); WordsBusiness.Add(word); // send to the controller to be displayed return(Displayer <IJoinCLasses>(word.Results)); } }
public static void GetWordByEntries(string wordId, string language) { APIQueries.GetEntries(language, wordId); }