Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public string Name { get; set; }
- public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) {
- // validation logic which is not being called on post.
- }
- Public MyModel { get; set; }
- [HttpPost]
- public ActionResult Index(MyModel model)
- {
- // this is always true??
- if(this.ModelState.IsValid) { blah blah }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement