title: c# JSONPatch not working with int and enums
body: <p>I am try to implement ASP.NET MVC 5 WebAPI Patch. But there is a problem with int values and enums. JSON deserialize "think" that is better convert int to long, so is because that in my int propertie i recive allways 0...</p>
  
  <p>So i found "Microsoft.AspNet.JsonPatch.JsonPatchDocument" (there has many others out ther)</p>
  
  <p>Then problem is, i recive allways null in my model</p>
  
  <pre><code>public async Task&lt;IHttpActionResult&gt; Patch( int id, [FromBody] Microsoft.AspNet.JsonPatch.JsonPatchDocument&lt;Customer&gt; model)
  {
      //model is allways == null
  }
  </code></pre>
  
  <p>I am using POSTMAN to send the patch as json in Body>Raw. Header is application/json.</p>
  
  <p>I don´t understand why model is null... i need to do anything on WebApiConfig?</p>
  
  <p>Still I tried to implements a custom JsonConverter, but the problem is i have a lots of Enum types, i need to create one for each enum? I try sothing like this:</p>
  
  <pre><code> public class Int32EnumConverter&lt;T&gt; : JsonConverter
  </code></pre>
  
  <p>but the problem is in WebApiConfig.cs you need to implement this:</p>
  
  <pre><code>config.Formatters.JsonFormatter.SerializerSettings.Converters.Add(new Int32EnumConverter&lt;[I NEED HEAR Dynamic Enum Types&gt;&gt;);    
  </code></pre>
  
  <p>There as any one to help me? Thanks!</p>