The Model represents the Business Logic in the MVC Framework.
For Example,
If one want to get the employee information from the database. Then, needs to create the model class.
How to add the Model?
Description
To add a model, one have to follow the below steps.
Step 1
Create a new MVC Application.Go to Solution Explorer->Right Click on the Models->Add->Class as shown in the below figure.
Step 2
Then, the following window will appear. Give the Name in the option provided and click on Add as marked in the below figure.
Step 3
Then, the code will be generated as shown in the below figure.
This is the model class and one can write the logically related code here.