title: How to manually check if model is valid and get the error message
body: <p>Now,I have a model like this:</p>
  
  <pre><code>namespace TestMVC.Models.ViewModel
  {
     public partial class User
      {
  
          public string Name { get; set; }
          public int Age { get; set; }
          public string Email { get; set; }
  
      }
  
      [MetadataType(typeof(UserMetaData))]
      public partial class User
      {
  
  
      }
  
  public class UserMetaData
  {
      [Display(Name = "Name")]
      public string Name { get; set; }
      [Display(Name = "Age")]
      public int Age { get; set; }
      [Display(Name = "Email")]
      [RegularExpression(@"^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$", ErrorMessage = "The email is invalid")]
      public string Email { get; set; }
  }
  }
  </code></pre>
  
  <p>and i have a method like this :</p>
  
  <pre><code>   public ActionResult ValidCheck()
      {
          ModelState.AddModelError("error", "error");
          Models.ViewModel.User model = new Models.ViewModel.User();
          model.Age = 12;
          model.Name = "Andy He";
          model.Email = "123";
          //TryValidateModel(model);
       }
  </code></pre>
  
  <p>I want to through the method to Check if model is valid  and get the error message ,I try to use TryValideModel but it only can get the result which the model is valid ,can't get the error message ,Is there a method can do this?could you help me?</p>