/// <summary> /// Retrieve list of UserLogin. /// no parameters required to be passed in. /// </summary> /// <returns>List of UserLogin</returns> public UserLoginList GetAll() { using (UserLoginDataAccess data = new UserLoginDataAccess(ClientContext)) { return(data.GetAll()); } }
/// <summary> /// Retrieve list of UserLogin. /// </summary> /// <param name="fillChild"></param> /// <returns>List of UserLogin</returns> public UserLoginList GetAll(bool fillChild) { UserLoginList userLoginList = new UserLoginList(); using (UserLoginDataAccess data = new UserLoginDataAccess(ClientContext)) { userLoginList = data.GetAll(); } if (fillChild) { foreach (UserLogin userLoginObject in userLoginList) { FillUserLoginWithChilds(userLoginObject, fillChild); } } return(userLoginList); }