Imagine I have one controller that register somebody and if successful should display a message on another controller view.
[HttpPost]
public ActionResult Register(RegisterModel model)
{
string msg = db.Register(model)
// Assuming msg contains "You have been succesfully registered"
// How do I display that on the Dashboard view??
return RedirectToAction("Index", "Dashboard");
}
What's the best way to pass a message or a series of messages to the Dashboard controller??
Even better if I can pass a list of objects with their own properties (something like obj.Status && obj.Message)