Example #1
0
        public List <User> FindUsers(out int totalRecords, UserCriteria userCriteria = null, bool manageRole = true, int currentRecordIndex = 0, int maxRecord = 0)
        {
            var userList = _userModule.Find(out totalRecords, userCriteria, currentRecordIndex, maxRecord);

            if (userList != null && manageRole)
            {
                foreach (var user in userList)
                {
                    if (user != null && manageRole)
                    {
                        CompleteUserRole(user);
                    }
                }
            }

            return(userList);
        }