Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

Kerry Collier
Kerry Collier
1,411 Points

routes question about changing the controller for ASP.Net MVC

So is the ComicBooks used as the name the first part of the ComicBooksController file? I just want to be clear since the view folder is also named ComicBooks. Just want to understand fully what I'm referencing. I assume it is since it is the controller...

1 Answer

Tim Strand
Tim Strand
22,458 Points

Not quite clear what you are asking. Basically in your route its controller/action/id. Typically the View Folder is named the same as the Controller. Then the view is named the same as the action. This allows you to not specify a view path when returning View() from the controller. if your names differ then you would need to specify View(string, string)