title: How does one perform asp.net mvc 4 model binding for enums?
body: <p>Has the asp.net mvc team implemented a default model binding for enums? One that is out of the box and there is no need of creating a custom model binder for enums.</p>
  
  <p>UPDATE:<br/>
  Let's say I have an action that will be receiving a view model and a JSON object will be posted to the action.</p>
  
  <pre><code>jsObj{id:2, name:'mike', personType: 1}
  </code></pre>
  
  <p>and the view model:</p>
  
  <pre><code>class ViewModel
  {
      public int id {get;set;}
      public string name {get;set;}
      public PersonType personType{get;set;}
  }
  
  public enum PersonType : int
  {
     Good = 1,
     Bad = 2,
     Evil = 3
  }
  </code></pre>
  
  <p>Will the person type be bound?</p>