title: fill two drop-down-list in one view with two models
body: <p>I have two drop-down-list in my partial view.
  I wanna fill them . of course from diffrent tables.
  So I must  use two different models  in my view.
  I  did it by viewbag .
  like below :</p>
  
  <p>My class:</p>
  
  <pre><code>         public class HelperClass
  
          {
  
         public static List&lt;tbl_TypeOfSend&gt; GetTypSend()
          { 
          using(var db=new ProjectContext())
          {
              var Lst = db. tbl_TypeOfSend.ToList();
              return Lst;
          }
  
  
      }
      public static List&lt;tbl_TypOfPaye&gt; GetTypPay()
      {
          using (var db = new ProjectContext())
          {
              var Lst = db. tbl_TypOfPaye.ToList();
              return 
          }
          }
  
  
  
          }
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>       public ActionResult MyAction()
          {
          ViewBag. TypSend = HelperClass.GetTypSend ();
          ViewBag. GetTypPay = HelperClass.GetTypPay ();
          return PartialView();
          }
  </code></pre>
  
  <p>In view:
  i want some thing like below .i know it dose not work.how can do it.</p>
  
  <pre><code>              @model List&lt;Project.Models. tbl_TypeOfSend &gt;
  
                          &lt;select  id="id" class="span5"&gt;
                              &lt;option&gt;select type send&lt;/option&gt;
                             @foreach (var item in ViewBag.TypSend)
                              {
  
                              &lt;option  value="@item.id"&gt; @item.TypesendField &lt;/option&gt;
                              }
  
                          &lt;/select&gt;
                       .
                       .
                       .
                       .
  
  
                        @model List&lt;Project.Models. tbl_TypOfPaye &gt;
                          &lt;select class="span5"&gt;
                             &lt;option&gt;--- select type payment ---&lt;/option&gt;
                               @foreach (var item in ViewBag. GetTypPay)
                              {
  
                              &lt;option value="@item.id"&gt;@item.TypePaymentField&lt;/option&gt;
                               }
                          &lt;/select&gt;
  </code></pre>