I would like to isolate a controller action completely from other elements of the system, as it is a refactor to legacy code so that the action can be rendered in various places in the system. In order to isolate any overlap in property names in the partial view's model, I was hoping to prefix the form name attributes with a certain value and make use of the BindAttribute to instruct the ModelBinder to match up the model properties with the appropriately prefixed form fields.
Since I have a handful of actions that make use of this model, I was hoping I could place the [Bind] decorator directly on the model class itself, avoiding having to decorate every model parameter coming into each of those actions. However, this approach doesn't seem to register with the binder, so I end up with unpopulated properties. On the other hand, if I move the decorators to the parameters, all is well.
The documentation for BindAttribute indicates it can be used on classes. Is this not a supported scenario?