예제 #1
0
        public IActionResult VerifyAccount(string token, int userid)
        {
            tbl_userdata user = new tbl_userdata();

            user.fld_activationcode = token;
            user.fld_userid         = userid;
            int verificationResult = MollShopContext.VerifyUser(token, userid);

            switch (verificationResult)
            {
            case 1:
                ViewData["message"] = "Congratulations, your account is now verified!";

                break;

            default:
                ViewData["message"] = "omething went wrong. Please contact support";

                break;
            }
            return(View(user));
        }