title: Razor view for a many to many relationship
body: <p>I have a very basic question with the Razor views. </p>
  
  <p>I want to make a View for this model for creation and deletion. </p>
  
  <p>Model is as follows</p>
  
  <pre><code>public class RolePriviledgeModel
  {
      [Key]
      public int RolePriviledgeId { get; set; }
      public RoleModel Role { get; set; }
      public PriviledgeModel Priviledge { get; set; }
      public ICollection&lt;PriviledgeModel&gt; Priviledges { get; set; }
  
  }
  </code></pre>
  
  <p>I want to have two drop down list boxes for selecting the User ID and Role ID on the view. </p>
  
  <p>How to get the role ids and priviledge ids from the DB Context and where to use the function?</p>