title: MVC 4 Models with many-to-many produces an error Object graph for type contains cycles and cannot be serialized
body: <p>I'm using the single page application template in MVC 4. The template created the following:</p>
  
  <pre><code>    public partial class SSOController : DbDataController&lt;Softdocs.SSOWeb.SSOContext&gt;
  {
  
      public IQueryable&lt;Softdocs.SSOWeb.Models.User&gt; GetUsers() {
          return DbContext.Users.Include("Groups").OrderBy(u =&gt; u.UseName);
      }
      . . . 
  }
  </code></pre>
  
  <p>I added the ".Include("Groups")" to populate the collection representing the m2m between Groups and Users.  This resulted in receiving the following error on the client </p>
  
  <pre><code>Object graph for type contains cycles and cannot be serialized if reference tracking is disabled
  </code></pre>
  
  <p>This appears to be a longstanding issue that can be resolved in WCF by either decorating the method with [CyclicReferencesAware(true)] or [DataContract(IsReference = true)].  </p>
  
  <p>Any ideas on how to resolve this with DdDataController (ASP.Net Web Api) would be very much appreciated.</p>