C# Class Worki.Web.ModelBinder.RentalBinder

Inheritance: IModelBinder
Afficher le fichier Open project: tah91/eworkyWebSite

Méthodes publiques

Méthode 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 méthode

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
Résultat object

RentalBinder() public méthode

public RentalBinder ( IModelBinder binder ) : System
binder IModelBinder
Résultat System