public ActionResult FirstMethod()
{
...
ViewBag.Message = "My message";
return RedirectToAction("SecondMethod");
}
public ActionResult SecondMethod()
{
...
return View();
}
public ActionResult FirstMethod()
{
...
TempData["Message"] = "My message";
return RedirectToAction("SecondMethod");
}
public ActionResult SecondMethod()
{
...
ViewBag.Message = TempData["Message"];
return View();
}