/// <summary> /// Retrieve list of Lookup. /// no parameters required to be passed in. /// </summary> /// <returns>List of Lookup</returns> public LookupList GetAll() { using (LookupDataAccess data = new LookupDataAccess(ClientContext)) { return(data.GetAll()); } }
/// <summary> /// Retrieve list of Lookup. /// </summary> /// <param name="fillChild"></param> /// <returns>List of Lookup</returns> public LookupList GetAll(bool fillChild) { LookupList lookupList = new LookupList(); using (LookupDataAccess data = new LookupDataAccess(ClientContext)) { lookupList = data.GetAll(); } if (fillChild) { foreach (Lookup lookupObject in lookupList) { FillLookupWithChilds(lookupObject, fillChild); } } return(lookupList); }