title: How in the model we can use localization string for the error message
body: <p>I use this class</p>
  
  <pre><code>[Required(ErrorMessage = "Username is required") ]    
  public string UserName { get; set; }
  </code></pre>
  
  <p>Though when I try to use this code</p>
  
  <pre><code>[Required(ErrorMessage = Localization.UserNameRequired) ]    
  public string UserName { get; set; }
  </code></pre>
  
  <p>It throws the compile error and doesn't allow me to use this localized string. Am I doing something wrong?</p>