public virtual void ValidateConfirmationToken(string email, ValidationToken token, out ValidationTokenStatus status)
 {
     using (var Entities = Repository)
     {
         Guid applicationInstance = Guid.Parse(ApplicationName);
         var  user = Entities.
                     ApplicationInstance_v1_0
                     .Single(i => i.instanceUID == applicationInstance)
                     .Membership_v1_0.Where(m => m.Users_v1_0.email == email)
                     .Select(m => m.Users_v1_0).SingleOrDefault();
         if (user == null)
         {
             status = ValidationTokenStatus.UserNotFound;
         }
         else
         {
             try
             {
                 status = token.Validate(email);
             }
             catch
             {
                 status = ValidationTokenStatus.InvalidToken;
             }
         }
     }
 }
 public virtual void ValidateSubscriptionToken(string email, ValidationToken token, out ValidationTokenStatus status)
 {
     using (var Entities = Repository)
     {
         var user = Entities.Users_v1_0.Where(u => u.email.Equals(email, StringComparison.InvariantCultureIgnoreCase)).SingleOrDefault();
         if (user == null)
         {
             status = ValidationTokenStatus.UserNotFound;
         }
         else
         {
             try
             {
                 status = token.Validate(email);
             }
             catch
             {
                 status = ValidationTokenStatus.InvalidToken;
             }
         }
     }
 }
        public virtual void ValidateSubscriptionToken(string email, ValidationToken token, out ValidationTokenStatus status)
        {
            using (var Entities = Repository)
            {
                var user = Entities.Users_v1_0.Where(u => u.email.Equals(email, StringComparison.InvariantCultureIgnoreCase)).SingleOrDefault();
                if (user == null)
                {
                    status = ValidationTokenStatus.UserNotFound;
                }
                else
                {
                    try
                    {
                        status = token.Validate(email);
                    }
                    catch
                    {
                        status = ValidationTokenStatus.InvalidToken;
                    }

                }
            }
        }
        public virtual void ValidateConfirmationToken(string email, ValidationToken token, out ValidationTokenStatus status)
        {
            using (var Entities = Repository)
            {
                Guid applicationInstance = Guid.Parse(ApplicationName);
                var user = Entities.
                    ApplicationInstance_v1_0
                    .Single(i => i.instanceUID == applicationInstance)
                    .Membership_v1_0.Where(m => m.Users_v1_0.email == email)
                    .Select(m => m.Users_v1_0).SingleOrDefault();
                if (user == null)
                {
                    status = ValidationTokenStatus.UserNotFound;
                }
                else
                {
                    try
                    {
                        status = token.Validate(email);
                    }
                    catch
                    {
                        status = ValidationTokenStatus.InvalidToken;
                    }

                }
            }
        }