C# Class Worki.Web.ModelBinder.RentalBinder

Inheritance: IModelBinder
Mostra file Open project: tah91/eworkyWebSite

Public Methods

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

Method Details

BindModel() public method

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
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

RentalBinder() public method

public RentalBinder ( IModelBinder binder ) : System
binder IModelBinder
return System