title: Dropdown List is Refusing to Bind Records Correctly
body: <p>I am trying to populate my dropdownlist but I am getting the following error</p>
  <blockquote>
  <p>ArgumentNullException: Value cannot be null. (Parameter 'items')</p>
  </blockquote>
  <p>In my <code>View Controller</code> I am using the following:</p>
  <pre><code>return View(await _context.MISobject.Include(C =&gt; C.StafMemeberdsOCM1).Include(C =&gt; C.StafMemeberdsOCM2).Include(c =&gt; c.MISPrioritys).ToListAsync());
  </code></pre>
  <p>And in my Class I have the following properties:</p>
  <pre><code>public int? Priority { get; set; }
  [ForeignKey(&quot;Priority&quot;)]
  public virtual MISPriority MISPrioritys { get; set; }
  public IEnumerable&lt;MISPriority&gt; MISPriorityList { get; set; }
  </code></pre>
  <p>Obviously the reason the error is because <code>MISPriorityList</code>  is empty it does not know about the data so how do I fetch the records correctly to ensure the items appear in the drop down list. <br>As you can see from screen shot below there is data in the <code>MISPrioritys</code> table.</p>
  <p><a href="https://i.stack.imgur.com/SwbMA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SwbMA.png" alt="Data in the prioritys table" /></a></p>