How can I redirect to another controller correctly?
Im in the RedeAtendimentoController and I want to redirect to my Index action in the Rede_AtendimentoController
I already try versions of RedirectToAction and RedirectToRoute but isnt working
RedirectToRoute("Rede_Atendimento") or RedirectToAction("Index", "Rede_Atendimento");
my controller Rede_AtendimentoController have a [RoutePrefix("Rede_Atendimento")]
You can supply the
areain therouteValuesparameter. Try this:Or
depending on which area you're aiming for.