I have a controller with many actions. I need to prevent execution of some actions based on this condition:
if (Session["MyObject"] == null) return RedirectToAction("Introduction");
It should redirect to a default Introduction action.
I can put this condition in each action, but I would like to define this condition just in one place, like in controller's constructor maybe.
Any ideas? Thank you.