public bool checkLockCode(LockCode locked)
 {
     return AuthenticationUsersService.UserHasLockCode(locked);
 }
 public bool UserHasLockCode(LockCode locked)
 {
     return AuthenticationUsersRepository.UserHasLockCode(locked);
 }
        /// <summary>
        /// </summary>
        /// <param name="locked"></param>
        /// <returns></returns>
        public bool UserHasLockCode(LockCode locked)
        {
            var status = false;
            status = CurrentSession.Query<AuthenticationUsers>()
                .Where(u => u.Email == locked.email && u.Nombre == locked.username && u.LockedCode == locked.lockCode)
                .ToList().Count() > 0
                ? true
                : false;

            return status;
        }