title: web api "get" method results in a view
body: <p>I have a .net core 2.0 web api with the following get method:</p>
  
  <pre><code>    [HttpGet]
      public async Task&lt;IEnumerable&lt;Customer&gt;&gt; Get()
      {
          return await customerDataProvider.GetCustomers();
      }
  </code></pre>
  
  <p>In the startup class i have the following in configuration:</p>
  
  <pre><code>     app.UseMvc(routes =&gt;
       {
          routes.MapRoute(
              name: "default",
              template: "{controller=Home}/{action=Index}");
       });
  </code></pre>
  
  <p>when i run the application i get the results displayed as raw json in the browser.</p>
  
  <p>I would like to add a view and to handle the results in that view meaning display them in a table and add some filtering and sorting options.</p>
  
  <p>How can i achieve this? I saw different articles on how to add a view or a razor page to a project but none of them was similar to my case..</p>
  
  <p>Thanks!  </p>