Validation with ASP MVC

0

I tried to use [StringLength (4)] but when it executes the error because it can only use character, I looked for some solutions but so far nothing.

    
asked by anonymous 25.05.2017 / 01:37

1 answer

0
[MinLength(4, ErrorMessage = "O campo {0} deve ter no mínimo {1} caracteres")]
    
25.05.2017 / 01:51