MVC - Model
M means Model it's used to create a logic class for any MVC application.
Model is basically the shape of data. The model is responsible for handling data and business logic.
It includes data, validation rules, data access and aggregation logic.
MVC model Contains all application Logic (business login, validation logic, and access logic).
A controller interacts with a model, access the data, performs the logic and passes that data to view
to pass the data from controller to View - need to import the model namespace on HomeController "using MVCMODELDEMO.model".
No comments:
Post a Comment