public void Register(RouteCollection routes) { routes.AddIE6Support(); routes.Map<HomeController.HomeUrl>(u => ""); routes.Map<PharmaceuticalController.PharmaceuticalAddUrl>(u => "pharma/"); }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); // Snooze provides some handy features... routes.AddVersionedStaticFilesSupport(); routes.AddIE6Support(); routes.FromAssemblyWithType<RouteRegistration>(); }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); // Snooze provides some handy features... routes.AddVersionedStaticFilesSupport(); routes.AddIE6Support(); routes.Map<HomeUrl>(h => ""); routes.Map<BooksUrl>(b => "books"); routes.Map<BookUrl>(b => "book/" + b.BookId); routes.Map<BookCommentsUrl>(c => "comments"); routes.Map<BookCommentUrl>(c => c.CommentId.ToString()); }