AspNetIdentitySample.Controllers.AccountController.ConfirmEmail C# (CSharp) Method

ConfirmEmail() private method

private ConfirmEmail ( System.UInt64 userId, string code ) : Task
userId System.UInt64
code string
return Task
        public async Task<ActionResult> ConfirmEmail(UInt64 userId, string code)
        {
            if (userId == 0 || code == null)
            {
                return View("Error");
            }
            var result = await UserManager.ConfirmEmailAsync(userId, code);
            return View(result.Succeeded ? "ConfirmEmail" : "Error");
        }