I’m new to ASP.NET Core MVC. I have code like this in my controller:
[HttpGet]
[AllowAnonymous]
public async Task<IActionResult> ConfirmEmail(string userId, string code)
{
var result = await _userManager.ConfirmEmailAsync(user, code);
return View(result.Succeeded ? "ConfirmEmail" : "Error");
}
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?
4