filmov
tv
Controllers and Action Methods in ASP.NET Core MVC | Class 5

Показать описание
In this video tutorial, you will learn Controllers and their action methods in ASP.NET Core MVC.
Controller
Manages the flow of the application
A controller is used to define and group a set of actions.
Is responsible for intercepting incoming requests and executing the appropriate application code.
Communicates with the models of the application and selects the required view to be rendered for the request.
Allows separating the business logic of the application from the presentation logic.
Incoming requests are mapped to actions through routing.
Controllers help in managing the complete flow of applications including accepting input and rendering appropriate output.
Controllers are basically C# classes that inherit form inherit from Microsoft.AspNetCore.MVC.Controller.
Controller and its action method accept incoming Brower requests, retrieve required model information, and provide suitable responses.
It is recommended that the class name of a controller ends with the suffix ‘Controller’.
Are located in the root-level “Controllers” folder.
Action Method
A controller class can contain one or more action methods, also known as controller actions.
Action methods are pubic methods in Controller classes.
Action methods are responsible for processing the requests that are sent to the controller.
The action method can return multiple types of data.
By default, it generates a response in the form of the IActionResult interface or ActionResult Abstract class.
If you have any comments or discussions feel free to discuss.
INTRODUCTION OF ASP.NET CORE (CLASS -1) 👇👇👇
MIDDLEWARE IN ASP.NET CORE (CLASS -2) 👇👇👇
ROUTING IN ASP.NET CORE (CLASS -3) 👇👇👇
SUBSCRIBE FOR MORE AND PRESS THE BELL ICON TO GET THE LATEST VIDEO UPDATES...
===========================
GET IN TOUCH
🔔Help
If you have any Problem Comments me. I will help you as soon as fast. See you later.
Thanks For Watching
Controller
Manages the flow of the application
A controller is used to define and group a set of actions.
Is responsible for intercepting incoming requests and executing the appropriate application code.
Communicates with the models of the application and selects the required view to be rendered for the request.
Allows separating the business logic of the application from the presentation logic.
Incoming requests are mapped to actions through routing.
Controllers help in managing the complete flow of applications including accepting input and rendering appropriate output.
Controllers are basically C# classes that inherit form inherit from Microsoft.AspNetCore.MVC.Controller.
Controller and its action method accept incoming Brower requests, retrieve required model information, and provide suitable responses.
It is recommended that the class name of a controller ends with the suffix ‘Controller’.
Are located in the root-level “Controllers” folder.
Action Method
A controller class can contain one or more action methods, also known as controller actions.
Action methods are pubic methods in Controller classes.
Action methods are responsible for processing the requests that are sent to the controller.
The action method can return multiple types of data.
By default, it generates a response in the form of the IActionResult interface or ActionResult Abstract class.
If you have any comments or discussions feel free to discuss.
INTRODUCTION OF ASP.NET CORE (CLASS -1) 👇👇👇
MIDDLEWARE IN ASP.NET CORE (CLASS -2) 👇👇👇
ROUTING IN ASP.NET CORE (CLASS -3) 👇👇👇
SUBSCRIBE FOR MORE AND PRESS THE BELL ICON TO GET THE LATEST VIDEO UPDATES...
===========================
GET IN TOUCH
🔔Help
If you have any Problem Comments me. I will help you as soon as fast. See you later.
Thanks For Watching