The MVC framework has three components.
Model
Model objects are the parts of the application
that implement the logic for the applications domain. For example, a object
might retrieve information from a database, operate on it, and then write
updated information back to a table in SQL Server.
View
Views are the components that display the
application user interface (UI).
MVC stands for model-view-controller. MVC is a pattern
for developing applications such that each part has a separate responsibility.
controller
This component handles user interaction. It
controls user input to display information on View from Model.
Adding controller
Step-1
Now adding
ASP.NET MVC Web Application by using view ->solution Explorer ASP.NET MVC
web Application.

Figure1.gif
Step-2
Now right click on the
solution explorer and add the controller.
Solution
explorer->controllers->right-click->add->controller.

Figure2.gif
Step-3
Name your new
controller RohatashController and click Add.

Figure3.gif
Step-4
Notice in Solution
Explorer that a new file has been created named Controller.cs. The file is open
in the IDE.

Figure4.gif
Step-5
Now creating a function
Index.

Figure5.gif
Step-6
Run the application
(press F5 or Ctrl+F5). In the browser, append Rohatash to the path in the
address bar. for example http://localhost:2858/Rohatash

Figure6.gif