Programming / Coding, Web Development
MVC Tutorial: What is controller in MVC?
We will start this video from What is controller in MVC? Controllers are the main building blocks of any mvc 5 application. We can not imagine any mvc application without controller.
This video will cover lots of thins about controllers in mvc.
First we will learn what is controller so that we will be familiar about basics of mvc controller. Then we will learn how to add a new controller (empty or with read-write action methods). This will give us a new controller in our application. Inside a controller there are multiple public methods. These methods are called as Action methods. Action methods are responsible for returning different types of action results from controller.
We will also learn how can we pass parameters from browser (client) to controller (server) with the help of query string.
We will start by passing 1 parameter and then we will pass multiple parameters to controller.
Timestamp -
# Objective of this video 00:16
# What is controller in mvc 01:23
# What is the use/role of controller 04:34
# Definition of controller 08:07
# How to create/ add a new controller 09:23
# What is Action Method in mvc 15:50
# How to call Action Method from browser 18:06
# How to pass parameters in controller's Action Method 23:10
# And most important – How will you decide when to create new controller and when to use the existing one 37:25