I have 2 Controller's HomeController and UserController within UserController I have a method that validates the user. If it is valid, I want it to redirect to the Index page of the HomeController But when I try to redirect it, it drops to the page:
Follow the redirect method to better illustrate the scenario.
var usuarioValido = _usuario.Login(email, senha);
if (usuarioValido == true)
{
return RedirectToAction("~/Home/Index");
}
return View("Usuario Não encontrado");
How do I do this routing correctly?