Is there any easy way to distinguish between an ASP.NET MVC controller action being hit “directly” due to a client web browser request, and being hit by virtue of a Controller.RedirectToAction call or a RedirectToRoute result?
Is there any easy way to distinguish between an ASP.NET MVC controller action being
Share
Alternatively, put a value in TempData
(From Craig Stuntz)