/// <summary> /// Retrieve list of Language. /// no parameters required to be passed in. /// </summary> /// <returns>List of Language</returns> public LanguageList GetAll() { using (LanguageDataAccess data = new LanguageDataAccess(ClientContext)) { return(data.GetAll()); } }
/// <summary> /// Retrieve list of Language. /// </summary> /// <param name="fillChild"></param> /// <returns>List of Language</returns> public LanguageList GetAll(bool fillChild) { LanguageList languageList = new LanguageList(); using (LanguageDataAccess data = new LanguageDataAccess(ClientContext)) { languageList = data.GetAll(); } if (fillChild) { foreach (Language languageObject in languageList) { FillLanguageWithChilds(languageObject, fillChild); } } return(languageList); }