SHARE
TWEET

Untitled

a guest Jun 15th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. routes.MapRoute(
  2.   "searchByName",
  3.   "Movies/edit",
  4.   new {Controller = "Movies", action = "edit"}
  5. );
  6.      
  7. public ActionResult index(int? id) {
  8.    if(!id.HasValue)
  9.       id = 2;
  10.    return Content("id: " + id);
  11. }
  12. public ActionResult edit(int? id) {
  13.    if (!id.HasValue)
  14.      id = 1;
  15.    return Content(String.Format("id =  {0}", id));
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top