title: How To Pass Model Object To View in Asp.Net MVC Using Ajax
body: <p>View</p>
  
  <pre><code>@model IEnumerable&lt;InfinityWeb.Models.Orders&gt;
  &lt;body&gt; 
     foreach(var item in Model)
     {
      &lt;label&gt; item.OrderId &lt;/label&gt; &lt;br/&gt;   @* it display all students name *@
     }
  
   @* Below is just DropDown for making request to controller *@
  
  &lt;div class="dropdown "&gt;
    &lt;button class="btn dropdown-toggle"type="button" id="menu1" data-toggle="dropdown"&gt;
          Select Orders
       &lt;span class="caret"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;ul class="dropdown-menu" role="menu" aria-labelledby="menu1"&gt;
      &lt;li role="presentation"&gt;&lt;a role="menuitem" href="@Url.Action("MonthOrders", "Admin")"&gt;This month orders&lt;/a&gt;&lt;/li&gt;
      &lt;li role="presentation"&gt;&lt;a role="menuitem" href="@Url.Action("TodayOrders", "Admin")"&gt;Today Orders&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Controller - returns new model to same View to iterate over monthly orders</p>
  
  <pre><code> public ActionResult MonthOrders()
      {
          return View("Index", orders.GetMonthOrders());
      }
  </code></pre>
  
  <p>The above code works fine, but instead of making call to load whole page I want to make a Ajax request while changing dropdown and receive a Orders Model From a JsonResult action method, so that I can use that model in my <code>foreach</code> loop to iterate over <code>Orders</code> such as below</p>
  
  <pre><code>public JsonResult MonthlyOrders()
  {
     // ??
  }
  </code></pre>
  
  <p>And also how would View's Model will receive that object </p>