Is there a way that we can easy enable the same scenario that Web Api uses to discover its action methods. On any project that is bigger than a demo project the controller is breaking SRP in a huge way. eg. http://nopcommerce.codeplex.com/SourceControl/changeset/view/ae393338e052#src%2fPresentation%2fNop.Web%2fControllers%2fCatalogController.cs
This is how it could look, or by using folders underneath the Controllers folder.
eg.
public class HomeIndexController : Controller {
public ActionResult Get() {
return View();
}
}
Comments: Assigning to Kiran to post a way or two on how to achieve this in MVC.
This is how it could look, or by using folders underneath the Controllers folder.
eg.
public class HomeIndexController : Controller {
public ActionResult Get() {
return View();
}
}
Comments: Assigning to Kiran to post a way or two on how to achieve this in MVC.