title: Using Linq to get date of last order for all customers
body: <p>I have the following two POCO's</p>
  
  <pre><code>public class Customers
  {
      public Guid Id { get; set; }
      public string FirstName{ get; set; }
      public string LastName{ get; set; }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public class Orders
  {
      public Guid Id { get; set; }
      public Guid CustomerId { get; set; }
      public string Product { get; set; }
      public DateTime Date { get; set; }
  }
  </code></pre>
  
  <p>Assuming my Data Service returns a List&lt;Customers&gt; and List&lt;Orders&gt;, how would I use Linq to Get the Date of the last order for each customer? </p>
  
  <p>I want to return Customer.Id, Customer.FirstName, Customer.LastName, Order.Id, Order.Date and Order.Product (as Json from a controller action), so would I need to also create a new POCO to hold results? something like the following:</p>
  
  <pre><code>public class CustomerOrders
  {
      public Guid CustomerId { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public Guid OrderId { get; set; }
      public DateTime Date { get; set; }
      public string Product { get; set; }
  }
  </code></pre>