RedirectToAction
, I used TempData
however after any page change it loses the reference, know of some solution so that it does not lose the reference ? Or does it need to be done differently?
RedirectToAction
, I used TempData
however after any page change it loses the reference, know of some solution so that it does not lose the reference ? Or does it need to be done differently?
It's otherwise:
return RedirectToAction("OutraAction", "Controller", new { minhaClasse = /* objeto do tipo MinhaClasse */, area = "area"})
Then your Controller
looks like this:
public ActionResult OutraAction(MinhaClasse minhaClasse) { ... }