Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- routes.MapRoute(
- "searchByName",
- "Movies/edit",
- new {Controller = "Movies", action = "edit"}
- );
- public ActionResult index(int? id) {
- if(!id.HasValue)
- id = 2;
- return Content("id: " + id);
- }
- public ActionResult edit(int? id) {
- if (!id.HasValue)
- id = 1;
- return Content(String.Format("id = {0}", id));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement