Member-only story
Web API with Visual Studio part-1
create the project
From Visual Studio, select File menu then New then Project.
Select the ASP.NET Core Web Application (.NET Core) project template. Name the project WebAPIDEMO and select OK.

In the New ASP.NET Core Web Application — TodoApi dialog, select the Web API template. Select OK.

Launch the app
In Visual Studio, press CTRL+F5 to launch the app. Visual Studio launches a browser and navigates to http://localhost:56846/api/values, where port is a randomly chosen port number.
Add a model class
Add a folder named “Models”. In Solution Explorer, right-click the project. Select Add then New Folder. Name the folder Models.


Add a iamkajas class. Right-click the Models folder and select Add then Class. Name the class iamkajas and select Add.


Then rewrite the IAmKajas class with this code
namespace WebAPIDEMO.Models{public class IAmKajas{public long Id { get; set; }public string Name { get; set; }}}
