title: ASP.NET Core MVC consuming Internal Web API without using Http request
body: <p>I'm using ASP.NET Core MVC and Web API and trying to consume the internal Web API (done using ApiController, prepare for future cross-platform application use), I saw an answer which doesn't need to use HttpClient or any Http Request features to get data from Web API, refer: <a href="https://stackoverflow.com/questions/42505090/consuming-web-api-controller-action-from-mvc-controller">Consuming web api controller action from mvc controller</a></p>
  
  <p>I'm trying to do the similar thing, but my auto generated Web API Controller comes with DBContext parameter, which causing me unable to follow what is mentioned from the link.</p>
  
  <p>Below is what i have in my Controller which caused me unable to follow actions mentioned in the link above:</p>
  
  <pre><code>    private readonly MyTestDBContext _context;
  
      public MfgProductsController(MyTestDBContext context)
      {
          _context = context;
      }
  </code></pre>
  
  <p>If the "MyTestDBContext context" parameter supposed to remain, what should I write in my Controller in order to pass the DBContext in? </p>
  
  <p>Or if there's a way to remove "MyTestDBContext context" from the parameter, how the constructor supposed to change to?</p>