I'm trying to redirect to another action but it's not working. The action is called but the return View() doesn't change the screen.
[HttpPost]
public ActionResult Login(LoginViewModel vm)
{
return RedirectToAction("AlterarSenhaPadrao", new { Id = usuario.Id });
}
public ViewResult AlterarSenhaPadrao(int Id)
{
return View(new AlterarSenhaViewModel { UsuarioId = Id });
}
Looking at the Developer Tools on Chrome, I get this:
So, the action is called but it doesn't return the view properly. By the way, my controller is not assigned with [Authorize]. Any ideia about why is this happening?
Thanks
UPDATE
//Shows the login page
public ActionResult Login()
{
return View(new LoginViewModel());
}
//The submit action, the same I posted below.
[HttpPost]
public ActionResult Login(LoginViewModel vm)
{
}