title: Is it possible to host two different Odata models in a Web API service
body: <p>Is it possible to host two different OData models in a single Web API service?
  And if so, how can I achieve this?</p>
  
  <p>Ex:
  Two Models like,</p>
  
  <pre><code>var model1 = new ODataConventionModelBuilder();
  builder.EntitySet&lt;Car&gt;("Car");
  
  var model2 = new ODataConventionModelBuilder();
  builder.EntitySet&lt;Animal&gt;("Animal");
  </code></pre>
  
  <p>Hope it's possible through some sort of routing.</p>
  
  <p>Controllers for <code>Car</code> and <code>Animal</code></p>
  
  <pre><code>public class AnimalController:ODataController{
   //Implementation stuff
  }
  
  public class AnimalController:ODataController{
  //Implementation stuff
  }
  </code></pre>
  
  <p>And ModelBuilder</p>
  
  <pre><code>public class ModelBuilder{
      public static IEdmModel GetModal1(){
          var model1 = new ODataConventionModelBuilder();
          builder.EntitySet&lt;Car&gt;("Car");
          return model1.GetEdmModel();
      }
  
      public static IEdmModel GetModal2(){
          var model2 = new ODataConventionModelBuilder();
          builder.EntitySet&lt;Animal&gt;("Animal");
          return model2.GetEdmModel();
      }
  }
  </code></pre>
  
  <p>Routing for Modal1</p>
  
  <pre><code>public static class WebApiConfig
  {
      public static void Register(HttpConfiguration config)
      {
          config.Routes.MapODataRoute(
          routeName: "OData",
          routePrefix: null,
          model: ModelBuilder.GetModal1());
      }
  }
  </code></pre>
  
  <p>So question again is how do I add modal2 </p>