2
votes
0answers
36 views

MVC routing with duplicate method entry points

The 3 methods below all need to have the same name: "Roles" They need to be the same as I have a permissions system that will only allow the execution of a "Roles" method. I don't feel too happy ...
4
votes
2answers
102 views

Gathering tokens from ASP.NET routes

This is one of the (many) utilitarian classes I have that I use with my ASP.NET sites. The basis of this one is to make gathering certain tokens that I use periodically, to make URL's more friendly. ...
4
votes
1answer
2k views

N-layered application structure in ASP.NET MVC 5

I've been trying to set up an n-layered application in ASP.NET MVC 5. I've converted my account controller to look like this. I would like some feedback as to whether this is going in the right ...
2
votes
1answer
938 views

Extending the MVC Routecollection

I'm currently developping an MVC framework on which I will be writing my websites. This is done through the usage of a starter kit. In standard MVC, your routes are registered like the following: <...
5
votes
1answer
200 views

Preprocessing Markdown Documents for Keywords

I recently added a feature to my application to serve arbitrary markdown documents from a directory. This is designed to allow authors to populate a folder full of help documents, and be able to view ...
5
votes
1answer
349 views

MVC4 Routes, using Default

Should I leave the Default Route in if it's not adding any benefit? I have a RouteConfig.cs file that looks like this: ...
10
votes
1answer
16k views

Custom route for writing friendly URLs in ASP.NET MVC 3

I'm trying to build friendly URLs like /post/1/my-first-post. I started out with building my links like this: ...
14
votes
2answers
1k views

“Pluggable” routes in ASP.NET MVC

How do I handle multi-tenancy with routes in ASP.NET MVC? The application is a multitenant ASP.NET MVC 3 application. Tenants are identified based on hostname so this does not interfere with routing. ...