I have a ASP.NET MVC project in which I have a method on a controller which is being called from two separate pages, until now the behaviour was the same but now I need it to be slightly different I just need to see if I'm on page A or page B so I know which behaviour happens.
Is there any solution with the ViewData
or View
or something else with which I can check from which page this method was called?