title: Sending object form angularjs to API .net core is always with id=0
body: <p>I'm trying to send an object from angularjs to API .net core. Everything is ok but id, in angular it is with it's value but in API it is always 0 (zero). every id in the object is 0 (zero).</p>
  
  <p>The code from angularjs:</p>
  
  <pre><code>vm.editReservation = function editReservation() {
      reservationService.editReservation(vm.reservation).then(function(result) {
              toastr.options = { "positionClass": "toast-top-full-width" };
              toastr.success("Ruajtja u krye me sukses");
      }).catch(function (response) {
          toastr.options = { "positionClass": "toast-top-full-width" };
          toastr.error(response.message);
      });
  };
  </code></pre>
  
  <p>The code from API .net core:</p>
  
  <pre><code>[HttpPost("editReservation")]
  public async Task&lt;IActionResult&gt; EditReservation([FromBody] Models.Reservation reservation)
  {
      Models.Reservation modelReservation;
      ReservationDuration modelReservationDuration;
      ReservationLocation modelReservationLocation;
      Person client;
      TaxRate taxRate;
      string textMessage;
      try
      {
          //some code here
      } 
      catch (Exception e)
      {
          Console.WriteLine(e);
      }
  }
  </code></pre>
  
  <p>I expect that reservation.id = {any number} but the actual it is {0}</p>
  
  <p>From Angularjs:</p>
  
  <p><a href="https://i.stack.imgur.com/YIQyC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YIQyC.jpg" alt="From Angularjs"></a></p>
  
  <p>To API:</p>
  
  <p><a href="https://i.stack.imgur.com/yiKxh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yiKxh.jpg" alt="To API"></a></p>