Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Professional ASP.NET MVC 5
|
BOOK: Professional ASP.NET MVC 5
This is the forum to discuss the Wrox book Professional ASP.NET MVC 5 by Jon Galloway, Brad Wilson, K. Scott Allen, David Matson; ISBN: 978-1-118-79475-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2014, 02:04 PM
Registered User
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 4 controller is not in /controller folder

I am working through chapter 4, generated scaffolding as instructed, but the StoreManagerController.cs was created inside the /Models folder and not in the /Controllers folder. My version of the Visual Studio Express 2013 for Web Update 3, it also has three (and not two as described) initial controllers with additions of ManageController. It feels like an error on the Microsoft part, should I move StoreManagerController to /Controllers manually?
 
Old October 31st, 2014, 12:53 AM
Wrox Author
 
Join Date: Oct 2006
Posts: 36
Thanks: 1
Thanked 5 Times in 5 Posts
Default

The controller will be created in whichever folder you initiate scaffolding from, so if you right clicked the Models folder when you created the controller, that's where it goes.

The good news is that it doesn't matter from an execution point of view. Controllers can be anywhere in your codebase; the folder doesn't matter. If you want to drag and drop it into the Controllers folder and change the namespace to keep thing neat you can, but it's not necessary.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4, Page 72, Store Manager Controller Drogil BOOK: Professional ASP.NET MVC 3 2 February 20th, 2012 06:32 PM
Chapter 4, Dragging View Controller FrankNatoli BOOK: Beginning iOS 4 Application Development 4 May 31st, 2011 11:36 PM
Chapter 22 Controller Class harpua BOOK: Professional PHP Design Patterns 1 January 24th, 2011 08:52 PM
controller to controller tigransh Spring 1 November 11th, 2006 12:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.