title: Filling a combobox in asp net core mvc in razor view
body: <p>My code:</p>
  
  <pre><code>&lt;label asp-for="FlightDestID"&gt; Select Destination &lt;/label&gt;
  &lt;select asp-for="FlightDestID"&gt;
  
  @foreach (var l in (List&lt;Locations&gt;)ViewBag.Locations)
  {
      &lt;option value="@l.ID" label="@l.Name"&gt;&lt;/option&gt;
  }
  &lt;/select&gt;
  </code></pre>
  
  <p>This code fills the combo with all empty items. I would like that the value be the id of the Location and the name displayed be the name of location.</p>