title: MVC - Display multiple Controller results in one view
body: <p>I have a controller in my MVC sire that has a couple of methods along the lines of the following:</p>
  
  <pre><code>public ActionResult _GetServiceStatus()
  {
  ...
  }
  
  public ActionResult _GetEventLogErrors()
  {
  ...
  }
  </code></pre>
  
  <p>Each of these methods references a different class type that I have stored in my Model, Service and Event respectively. These can be seen below:</p>
  
  <pre><code>public class Service
      {
          public string Name { get; set; }
          public string Status { get; set; }
      }
  
      public class Event
      {
          public string Source { get; set; }
          public string EntryType { get; set; }
          public string Message { get; set; }
          public DateTime Date { get; set; }
      }
  </code></pre>
  
  <p>What I want to do is to show the results of these methods on a single view. I already have this working for the Services check, with the results displaying correctly, but I cannot find how to add in the Event results.</p>
  
  <p>What I have currently in my view is below:</p>
  
  <pre><code>@{
      ViewBag.Title = "Monitoring";
  }
  
  @model IEnumerable&lt;SystemMonitoringTool.Models.Monitoring.Service&gt;
  
  &lt;div style="width:25%"&gt;
      &lt;span&gt;
          Services
      &lt;/span&gt;
      &lt;table id="services" style="border:solid; border-width:2px; width:100%"&gt;
          @foreach (var item in Model) {  
           &lt;tr&gt;
               &lt;td&gt;
                   @Html.DisplayFor(model =&gt; item.Name)
               &lt;/td&gt;
               &lt;td&gt;
                   @Html.DisplayFor(model =&gt; item.Status)
               &lt;/td&gt;
           &lt;/tr&gt;                       
          }
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Can someone help me find a way to display these side by side on the same view? Will be happy to provide more info if needed.</p>