How do I return a web API list?

Web API: How To Return List Of Custom Type (JSON)

  1. In the Templates pane, select Installed Templates and expand visual C# node and select web. In the list of project Templates, select ASP.NET Web Application and Click OK. …
  2. In the new ASP.NET Project dialog, select Web API and Click Ok.
  3. We got StudentApp (our Application Name) application with all needed files.

For More Information Please Refer: https://www.c-sharpcorner.com/blogs/web-api-return-list-of-custom-type-json