@{
var controller = ViewContext.RouteData.GetRequiredString("controller");
var action = ViewContext.RouteData.GetRequiredString("action");
}
https://stackoverflow.com/questions/6398189/getting-current-controller-action-from-within-partial-view