title: How to send my two models in one view in mvc4?
body: <pre><code>ManageDatabase db = new ManageDatabase();
  
      //
      // GET: /Addcart/
  
      public ActionResult Index()
      {
          List&lt;UserProfile&gt; Userdetails = db.UserProfiles.Where(m =&gt; m.UserName == User.Identity.Name).ToList();
  
          var _product = from ord in db.Orders
                         where ord.UserId == Userdetails[0].UserId
                         select ord;
  
  
  
          return View(_product);
      }
  </code></pre>
  
  <p>I have two models userprofile and orders.I want to retrieve the orders table where Orders UserId= Logged UserId..But it tells two models is not allowed for 1 view....Pls tell me the solution or tell me the alternate method.</p>