I just wonder how to implement notification system for asp.net mvc3 application like basically when user logged in to the system with successfully login page shows message if not error message.
i have some approach with the above problem keeping property value on viewmodel but don't know how to achieve when we passing notification from one controller to another controller or from one action to another action.
like when we log in to system login succeeded message from account controller to home controller and shows notification message on home page user login succeeded.
please it'll really convenient me to understand if you could provide code sample or some best approach with the above issue.
Thnaks
P.S
Here is the some code snippet that i'm trying with
public ActionResult Register(UserRegistrationViewModel registrationModel)
{
//some logic and when end of the code set the error message and
//redirect to separate action and after new action can read the message and show
if(success)
return RedirectToAction("Index","Home");
else
return RedirectToAction("Logon");
}