In MVC3, is there a way to decorate the ViewModel property to force DefaultModelBinder use a different name in the request?
For example, suppose you have the following presentation model:
public class SomeModel { public string Direction {get;set;} }
But the parameter included in it is Dir from an external source (for example, some third-party component, for example).
I know that a custom mediator can handle this, but I suppose there should be a way to decorate the property, just like action parameters can use Bind(Prefix="...") to determine this mapping.
source share