0 votes
in C Sharp by

MVC Components

1 Answer

0 votes
by

Below are the components of MVC

mvc components

Model

Model is a component which relates to all the data-related logic which user works with. This can represent either data which is transferred between View and Controller components or any other business logic-related data. For example, a Customer object retrieves customer information from the database, manipulates it and updates the data back to the database or uses for rendering data.

View

View component is used for representing UI logic of the application. For example, customer view includes all the UI components such as text boxes, dropdowns, etc. used by the user.

Controller

Controller acts as an interface between Model and View components for processing all the business logic and incoming requests, manipulating data using Model component and interacting with Views for rendering the final output. For example, customer controller handles all the interactions and inputs from the Customer View and updates the database by using Customer Model. Same controller is used for viewing the Customer data.

Related questions

0 votes
0 votes
asked Mar 6, 2020 in C Sharp by Hodge
0 votes
asked Mar 6, 2020 in C Sharp by Hodge
0 votes
asked Jan 20, 2020 in C Sharp by AdilsonLima
...