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.
[MinLength(4, ErrorMessage = "O campo {0} deve ter no mínimo {1} caracteres")]