Method | Description | |
---|---|---|
BindModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : object |
custom binding of rental model, because three things to handle manually - the features : RentalFeatures member to fill with checkboxs from form - the pictures : RentalFiles member to fill with hidden fields of images, and one radio button - the access : RentalAccess member to fill with form list items
|
|
RentalBinder ( IModelBinder binder ) : System |
public BindModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : object | ||
controllerContext | System.Web.Mvc.ControllerContext | contains the form data to fill model |
bindingContext | System.Web.Mvc.ModelBindingContext | to add modelerrors if needed |
return | object |
public RentalBinder ( IModelBinder binder ) : System | ||
binder | IModelBinder | |
return | System |