I'm Keyvan Nayyeri, a 25 years old Ph.D. student at
the Computer Science department of
the University of Texas at San Antonio.
I'm also
a Software Architect and Developer and previously held a B.Sc.
degree in Applied Mathematics.
This is my blog where I publish content about various topics specifically Programming Languages and Compilers, Software
Engineering and Programming.
The second part of my articles about Building a Simple Blog Engine with ASP.NET MVC and LINQ has been published on ASP Alliance.
In the second part of the article series about ASP.NET MVC Framework, Keyvan adds controllers to his blogging engine in order to describe how to use controllers in ASP.NET MVC and discusses some details related to controllers. He first discusses the concept of URL routing patterns and then explores the anatomy of a controller class. Finally, he examines how to implement the controllers in his sample blog application.
In a nutshell I would say that the second part is all about controller. You probably know that controllers are one of the main parts of the MVC pattern.
After publishing the first part that was an introduction to MVC pattern, ASP.NET MVC Framework and KBlog, I thought it's good to start the main series by discussing about controller component which is one of the main components and is a good start point.
Second part of this article series starts with an introduction to controller as well as a quick overview of routing mechanism and its default behavior in ASP.NET MVC. URL routing is a topic that should be covered in a separate part but was necessary to get introduced in this part.
After the introduction and talking about the default routing pattern, discussion about the controller begins by talking about the anatomy of a controller class. The next step is to talk about action methods and their role and then about parameters in action methods and several ways to work with parameters in action methods.
The last major topic of this article is implementing the controller classes for KBlog as our case study to see how these theories can be applied to real world scenarios.
Next parts of this series are in progress and hopefully you will see them published in the near future. It was quiet a while that I was away from ASP Alliance but now after publishing two parts of my new article series, I'm back on it again!
Leave a Comment