title: Using Validator.TryValidateObject in ASP.NET MVC
body: <p>Validator.TryValidateObject everytime return true. Why? I tried different field values.
  Its my model:</p>
  
  <pre><code>public class CompanyPreviewMeta
  {
      [Required]
      [Display(Name="Изображение")]
      public string Image { get; set; }
  
      [Required]
      [Display(Name="Текст")]
      [StringLength(100, MinimumLength = 20, ErrorMessage = "Значение {0} должно содержать от {2} до 100 символов.")]
      public string Text { get; set; }
  }
  </code></pre>
  
  <p>It's my validation, and "valid" is true everytime:</p>
  
  <pre><code>        ValidationContext ValidatorContext = new ValidationContext(model, null, null);
          List&lt;ValidationResult&gt; result = new List&lt;ValidationResult&gt;();
          bool valid = Validator.TryValidateObject(model, ValidatorContext, result, true);
  </code></pre>