title: Should I create DTO to remove id from object in put method?
body: <p>I wanna create simple API, for example - <code>todo</code> API.</p>
  <p>Created model</p>
  <pre><code>public class Todo
  {
      public int Id { get; set; }
      public string Title { get; set; }
      public bool Completed { get; set; }
  }
  </code></pre>
  <p>And than in code, I wanna create some methods. So I go to put method, start writing:</p>
  <pre><code>[HttpPut(&quot;{id}&quot;)]
  public IActionResult Put(Todo todo, int id)
  {
      ...
  }
  </code></pre>
  <p>And than I don't know if I should check if id from URL is same as id from <code>todo</code> or I should ignore id from <code>todo</code> or create <code>TodoUpdateDTO</code> without <code>id</code>.</p>
  <p>I know what whatever I would do - it will just work, but what is a good practice in .NET Core?</p>