title: Create Html.DropDownList from Model?
body: <p>I have a need to create an invoicing function in my mvc application. I have this model class:</p>
  
  <pre><code>public class Product
  {
      public int ProductId { get; set; }
      public int SupplierId { get; set; }
      public int CategoryId { get; set; }
      public string Name { get; set; }
      public string Description { get; set; }
      public decimal Price { get; set; }
      public double costPrice { get; set; }
      public string ProductPicUrl { get; set; }
      public ProductCategory Category { get; set; }
      public Supplier Supplier { get; set; }
  }
  </code></pre>
  
  <p>1.I need to make my view display a drop down list of all products (specifically all product names) without using ViewData
  2. I need to be able to click a button that goes to my AddToInvoice controller method. I am just not sure how to make it pull the productid out of the dropdownlist and send it to the method.</p>
  
  <p>Can anyone assist? Even if it is just to explain how to make the dropdownlist? </p>