Section 3: Creating a Model class (Restful API in ASP .Net Core)

 Section 3: Creating a Model class


Introduction:


We have seen in the Section 2, how ASP .Net Core application works. To recap, we map every table in the Database to a model class. In this section, let us see how to add a model class.


Steps to add a model class:


To add a new controller:

  • Create a folder called, Model. This is to struture our files better.
  • Add a class called, Movie.cs.

Find the steps below: