I have following ActionResult in a controller and you can see that I set a message in the ViewBag if it\'s successful. Then on the
ActionResult
controller
ViewBag
The viewbag/viewdata scope is available for controller to view only. if you use tempdata, it will available one request , you can extend more than one request