Nagarro interview question

What is Controller in asp.net.

Interview Answer

Anonymous

25 May 2021

Controller can contain an action and non-action method. It is used to handle the user request coming from the browser. It will check the request from the browser and identify the action method and return the respective view. A controller is inherited from “Controller Base” class which is inside the “System.Web.MVC” namespace. Default Controller is “Home Controller” and “Index” is view.