Asp .Net MVC - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

ASP.Net MVC Model

ASP.Net MVC Model

What is a Model?

shape Description

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?

shape Description

To add a model, one have to follow the below steps.

shape Step 1

Create a new MVC Application.Go to Solution Explorer->Right Click on the Models->Add->Class as shown in the below figure.

shape 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.

shape 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.