title: Binding hardcoded values and databases values into one dropdownlist
body: <p>I have a drop down list in C# asp.net MVC3 razor engine.
  I need to load values to that dropdownlist from one of my tables in my database and some values are hard coded.
  So I need to get both kind of values into one dropdown list.</p>
  
  <p>I can do them separately. </p>
  
  <p>This is how my view is :</p>
  
  <pre><code>@Html.DropDownListFor(model =&gt; model.MyTransaction.Status, new MultiSelectList(ViewBag.MyStatusId, "ID", "Name"))
  </code></pre>
  
  <p>My Model where enums are created :</p>
  
  <pre><code>public enum Ntypes{
    halfday
    casual
  }
  </code></pre>
  
  <p>My Controller :</p>
  
  <pre><code>ViewBag.MyTransaction = db.LeaveTypes.ToList(); //get the table values to drop down
  </code></pre>
  
  <p>//then even I can get the hard coded values separately ............</p>
  
  <pre><code>ViewBag.MyTansaction = (from NewLeaveTypes t in Enum.GetValues(typeof(Ntypes))
                                  select new { ID = t, Name = t.ToString()).ToList();
  </code></pre>
  
  <p>But cant get both values into one dropdownlist. 
  Plzzzz Help.</p>
  
  <p>Thanks...........</p>