我想在我的母版页中设置一个CSS类,这取决于当前的控制器和操作.我可以通过当前的控制器ViewContext.Controller.GetType().Name,但是如何获得当前的操作(例如Index,Show等等)?
ViewContext.Controller.GetType().Name
Index
Show
c# asp.net-mvc
asp.net-mvc ×1
c# ×1