Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
MapRoute "url: "{controller}/{action}/{id}" Help
David Smith
Oct 4 2017 2:35 PM
202
Reply
Does the MapRoute "url: "{controller}/{action}/{id}"," needs to modified to fit this actual http request below:
endpoint = "api/HelloWorld?zip=93011&service=CURRENT"
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Web API Introduction?
Asp.net textbox date mode to dd-mm-yyyy