BuildIt.Config.Core.Api.Utilities.AppConfigurationRoute.GetRouteData C# (CSharp) Method

GetRouteData() public method

public GetRouteData ( System.Web.HttpContextBase httpContext ) : System.Web.Routing.RouteData
httpContext System.Web.HttpContextBase
return System.Web.Routing.RouteData
        public override RouteData GetRouteData(HttpContextBase httpContext)
        {
            // IMPORTANT: Always return null if there is no match.
            // This tells .NET routing to check the next route that is registered.
            if (!IsCustomRoute(httpContext.Request.RawUrl)) return null;

            var result = new RouteData(this, new MvcRouteHandler());
            result.Values["controller"] = nameof(AppConfigurationController).Replace(nameof(Controller), "");
            result.Values["action"] = "Post";            

            return result;
        }