title: Status Notification System for asp.net mvc3 Application
body: <p>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.</p>
  
  <p>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.</p>
  
  <p><em>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.</em></p>
  
  <p><em>please it'll really convenient me to understand if you could provide code sample or some best approach with the above issue.</em></p>
  
  <p>Thnaks</p>
  
  <p>P.S</p>
  
  <p>Here is the some code snippet that i'm trying with</p>
  
  <pre><code> 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");
   }
  </code></pre>