I’m new in the ASP NET MVC
Now I have a code like this in my controller
[AllowAnonymous]
public async Task<IActionResult> ConfirmEmail(string userId, string code)
{
var result = await _userManager.ConfirmEmailAsync(user, code);
return View(result.Succeeded ? "ConfirmEmail" : "Error");
}
So the “ConfirmEmail” view will be returned and rendered. But after showing this ConfirmEmail view, I want to redirect to another route automatically and show another view. How can I do that? Could you guide me, please?
1