NancyFx/Nancy — pull request #844 by prabirshrestha (2012-11-28 22:09:22+00:00)
Title: added BindAndValidate module extensions

I found it tiring to call bind and validation multiple times. (also looks odd)

```c#
Get["/"] = _ => {
var model = this.Bind();
this.Validate(model);
if(!this.ModelValidateResult.IsValid) return 400;
return model.FirstName + " " + model.LastName;
};
```

Added extension method called BindAndValidate that binds and validates the model.

```c#
Get["/"] = _ => {
var model = this.BindAndValidate();
if(!this.ModelValidateResult.IsValid) return 400;
return model.FirstName + " " + model.LastName;
};
```

`BindAndValidate` will internally call `module.Validate` which will always set the `module.ModelValidationResult`.