Example #1
0
        public ActionResult VerifyAccount(string activationCode)
        {
            TestDatabaseEntities context = new TestDatabaseEntities();
            var v = context.UserLogins.Where(x => x.ActivationCode == new Guid(activationCode)).FirstOrDefault();

            if (v != null)
            {
                var userId = v.UserID;
                context.ConfirmEmail(userId);
            }
            return(View());
        }