public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
 {
     var result = new SecurityRepository().GetUsers(pageIndex, pageSize);
     var users = result.Select(u => new AccountMembershipUser
             (u.Id, u.Login, u.Salt, u.FirstName, u.SecondName, u.LastName, u.EMail, u.RegDate, u.IsActive));
     totalRecords = result.TotalEntries;
     var collection = new MembershipUserCollection();
     foreach (var user in users)
         collection.Add(user);
     return collection;
 }