title: How to Pass Multiple Objects from Controller action to View in MVC?
body: <p>How to pass multiple objects to view without using ViewData and ViewBag?</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>[AllowAnonymous]
  public ActionResult RandomView()
  {
     // Customer.
     var customers = _context.Customers.ToList();
     List&lt;CustomerDto&gt; customersDto = new List&lt;CustomerDto&gt;();
  
     foreach (var customer in customers)
     {
        customersDto.Add(new CustomerDto() { 
        Id = customer.Id,
        Name = customer.Name
        });
     }
  
     // Reports.
     var Reports= _context.Reports.ToList();
     List&lt;ReportsDto&gt; reportsDto= new List&lt;ReportsDto&gt;();
  
     foreach (var report in reports)
     {
        reportsDto.Add(new ReportsDto() {
        Id = report.Id,
        Name = report.Name
        });
     }
  
     return View(); // How to Pass Both CustomerDto and reportDto ?
  }
  </code></pre>
  
  <p><strong>I want to pass both <code>CustomerDto</code> &amp; <code>reportDto</code> as a strongly type to a view. Is it Possible ?</strong></p>