title: How to insert a model in ef 6 with a many to many relationship
body: <p>The question im asking is closely related to:</p>
  
  <p><a href="https://stackoverflow.com/questions/19130983/insert-operation-with-many-to-many-relationship-using-ef">Insert operation with many-to-many relationship using EF</a></p>
  
  <p>The big difference between that question and mine, is how would I do this from a web api perspective.</p>
  
  <p>Essentially i want to post to a MVC Web API 2 endpoint a json string along the lines of</p>
  
  <pre><code>{"Name":"Job3","Candidate":[1,2,3]}
  </code></pre>
  
  <p>to an end point like:</p>
  
  <pre><code>POST: api/Jobs
  </code></pre>
  
  <p>And have it recognize that i want to create a job 3, which has an association with Candidate 1, 2, and 3.</p>
  
  <p>EDIT:
  The answer given so far, deffinitly allows me to continue but...</p>
  
  <p>If possible I would like to do this using the scaffolding methods created when using visual studio. For example</p>
  
  <pre><code>public Job Post(Job JobFromBody){
  ....
  }
  </code></pre>
  
  <p>*Note: i don't actually care how the json looks, also if theres a better way, please let me know.</p>