Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Feature: Action methods based on Http Methods (like webapi) [47]

$
0
0
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.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>