Quantcast
Channel: ASP.NET MVC and REST URI's - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Todd Smith for ASP.NET MVC and REST URI's

You can use the [AcceptVerbs] attribute on your action methodpublic class BookmarksController : Controller{ [AcceptVerbs(HttpVerbs.Get)] public void Bookmarks(string user) { //add your bookmark }...

View Article



Answer by Pablo Retyk for ASP.NET MVC and REST URI's

first you need to create a new route in global.aspxroutes.MapRoute("Bookmarks", "{controller}/{user}/{action}/{id}");then add a new actionpublic class UsersController : Controller{...

View Article

ASP.NET MVC and REST URI's

How would I handle something like the below uri using ASP.NET MVC's routing capability:http://localhost/users/{username}/bookmarks/ - GEThttp://localhost/users/{username}/bookmark/{bookmarkid} -...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images