public override ProfileInfoCollection FindProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, out int totalRecords) { SaveLog("FindProfilesByUserName"); int errorNumber = 0; string errorDescription = string.Empty; ProfileInfoCollection list = _profileDao.FindProfilesByUserName(_currentLogin, authenticationOption, usernameToMatch, pageIndex, pageSize, out totalRecords, out errorNumber, out errorDescription); if (errorNumber > 0 || !string.IsNullOrEmpty(errorDescription)) { LogManager.WriteWarning(_currentLogin, this, "Error Finding profiles by user name", errorDescription); return(null); } return(list); }