Decorate that action method with [ChildActionOnly] attribute.
With [ChildActionOnly] attribute annotated, an action method can be called only as a child method from within a view.
Interviews1 answer
Decorate that action method with [ChildActionOnly] attribute.
With [ChildActionOnly] attribute annotated, an action method can be called only as a child method from within a view.