title: JsonProperty WebApi request and response models
body: <p>I have an API that talks to another API.
  The response model looks something like this:</p>
  
  <pre><code>public class AddressResponseModel
  {
      public string Id { get; set; }
      public string SaveAs { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public string Phone { get; set; }
      public string Address1 { get; set; }
      public string Address2 { get; set; }
      public string City { get; set; }
      public string County { get; set; }
      public string Country { get; set; }
      public string PostCode { get; set; }
  }
  </code></pre>
  
  <p>So, I need to send this to another API. I don't really want to play around with the response in JavaScript, I would just like to send it as it is to my endpoint and let the server handle its factorization.
  So, I tried to do this:</p>
  
  <pre><code>public class AddressBindingModel
  {
      [Required]
      [JsonProperty("address_1")]
      public string Address1 { get; set; }
  
      [JsonProperty("address_2")]
      public string Address2 { get; set; }
  
      [Required]
      [JsonProperty("city")]
      public string City { get; set; }
  
      [Required]
      [JsonProperty("county")]
      public string County { get; set; }
  
      [Required]
      [JsonProperty("postcode")]
      public string PostCode { get; set; }
  
      [Required]
      [JsonProperty("country")]
      public string Country { get; set; }
  
      [JsonProperty("save_as")]
      public string SaveAs { get; set; }
  }
  </code></pre>
  
  <p>but the problem with that is that it expects the json to follow to same property format.
  How can I get it to expect my unmodified response model, but output the JSON with the underscores?</p>
  
  <p>To clarify, I will post my model like this:</p>
  
  <pre><code>{
      address1: '123',
      address2: 'Some street',
      city: 'London',
      county: 'London',
      country: 'GB',
      saveAs: 'Home'
  }
  </code></pre>
  
  <p>and my API will then send this to another API like this:</p>
  
  <pre><code>{
      address_1: '123',
      address_2: 'Some street',
      city: 'London',
      county: 'London',
      country: 'GB',
      save_as: 'Home'
  }
  </code></pre>