I have a SQL query where I want to pass controller name as one of the where clause compare parameter. And there are many controllers within the application. Depending on the controller name there will be different result of query to be executed. So how can I pass name of the controller to some third controller.
Using this @ViewContext.RouteData.Values["controller"]
, I can get name of controller but within the view of that controller only. So how can this be achieved in another controller action method.