SHARE
TWEET

Untitled

Ortund Sep 11th, 2014 193 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public class RouteConfig
  2.     {
  3.         public static void RegisterRoutes(RouteCollection routes)
  4.         {
  5.             routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  6.  
  7.             routes.MapRoute(
  8.                 name: "Default",
  9.                 url: "{controller}/{action}/{id}",
  10.                 defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
  11.             );
  12.             routes.MapRoute(
  13.                 name: "Username",
  14.                 url: "{controller}/{action}/{user}"
  15.             );
  16.         }
  17.     }
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