title: C# ApiController returns List but postman shows "Could not get any response"
body: <p>I am struggling with strange situation. I am calling void method to ApiController from postMan but I get strange results. ApiController captures request and returns result with 3 objects but postman somehow shows that could not get any respone.. While all other methods which return one value works fine problem accours then returning multiple objects.</p>
  
  <p>ApiController:</p>
  
  <pre><code>[HttpGet]
  [Route("api/documents/AllDocs/")]
  public List&lt;Document&gt; AllDocs()
  {
      lock (_lock)
      {
          _documentsRepository = DocumentsRepository.Instance;
          var result = _documentsRepository.GetDocuments();
  
          return result;
      }
  }
  </code></pre>
  
  <p>Documents repository:</p>
  
  <pre><code>public List&lt;Document&gt; GetDocuments()
  {
      var documents = new List&lt;Document&gt;();
      try
      {
          var db = new Context();
          var docs = db.Document;
              //.Include(x =&gt; x.DocumentItems)
              //.Include(x =&gt; x.Page.Select(y =&gt; y.RegionCropper.Select(z =&gt; z.Cropper)))
              //.Include(x =&gt; x.Page.Select(y =&gt; y.RegionCropper.Select(z =&gt; z.MinorCropper))).ToList();
          return docs.ToList();
      }
      catch (Exception ex)
      {
          return documents;
      }
  }
  </code></pre>
  
  <p>PostMan :</p>
  
  <p><img src="https://i.stack.imgur.com/X51ma.png" alt="enter image description here"></p>
  
  <p>WebConfig :</p>
  
  <pre><code>public static class WebApiConfig
  {
      private static HttpSelfHostServer _server;
  
      public static void Run(string port)
      {
          var config = new HttpSelfHostConfiguration($"http://localhost:{port}");//"http://localhost:8080");
  
          config.Formatters.JsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
  
          config.Routes.MapHttpRoute(
          name: "API Default",
          routeTemplate: "api/{controller}/{action}/{id}",
          defaults: new { id = RouteParameter.Optional });
  
          //config.Routes.MapHttpRoute(
          //    "newdocument", "api/documents/newdocument/{document}",new { document = RouteParameter.Optional });
  
  
          config.MaxReceivedMessageSize = int.MaxValue;;
          config.MaxBufferSize = int.MaxValue;
          _server = new HttpSelfHostServer(config);
          _server.OpenAsync();
  
      }
  
      public static void Stop()
      {
          _server?.CloseAsync();
      }
  }
  </code></pre>