/// <summary> /// Retrieve list of ChatUser. /// no parameters required to be passed in. /// </summary> /// <returns>List of ChatUser</returns> public ChatUserList GetAll() { using (ChatUserDataAccess data = new ChatUserDataAccess(ClientContext)) { return(data.GetAll()); } }
/// <summary> /// Retrieve list of ChatUser. /// </summary> /// <param name="fillChild"></param> /// <returns>List of ChatUser</returns> public ChatUserList GetAll(bool fillChild) { ChatUserList chatUserList = new ChatUserList(); using (ChatUserDataAccess data = new ChatUserDataAccess(ClientContext)) { chatUserList = data.GetAll(); } if (fillChild) { foreach (ChatUser chatUserObject in chatUserList) { FillChatUserWithChilds(chatUserObject, fillChild); } } return(chatUserList); }