Explicitcoder

Divyang's ICollection

Legacy URL routing

Legacy Url Routing when application move from webform to MVC

// The legacy route class that exposes a RedirectActionNamepublic class LegacyRoute : Route{public LegacyRoute(string url, string redirectRuleName):base(url, new LegacyRouteHandler()) { RedirectRuleName = redirectRuleName; }public string RedirectRuleName { get; set; }public override VirtualPathData GetVirtualPath(RequestContext requestContext, RouteValueDictionary values) {return null; }}  / The legacy route handler, used for getting the HttpHandler for the requestpublic class LegacyRouteHandler : IRouteHandler{public IHttpHandler GetHttpHandler(RequestContext requestContext) {return…