示例#1
0
        public static RouteValueDictionary GetRouteViewDictionary(string areaName, string moduleName, object arguments)
        {
            RouteValueDictionary routeValues = arguments != null ? new RouteValueDictionary(arguments) : new RouteValueDictionary();

            routeValues["area"] = AreaHelpers.FormatMvcAreaName(areaName, moduleName);
            return(routeValues);
        }
示例#2
0
        public static RouteValueDictionary GetRouteViewDictionary(string areaName, string moduleName, IDictionary <string, object> dictionary)
        {
            RouteValueDictionary routeValues = dictionary != null ? new RouteValueDictionary(dictionary) : new RouteValueDictionary();

            routeValues["area"] = AreaHelpers.FormatMvcAreaName(areaName, moduleName);
            return(routeValues);
        }
示例#3
0
        public static RouteValueDictionary GetRouteViewDictionary(string areaName, string moduleName)
        {
            RouteValueDictionary routeValues = new RouteValueDictionary();

            routeValues["area"] = AreaHelpers.FormatMvcAreaName(areaName, moduleName);
            return(routeValues);
        }
示例#4
0
 public ModuleAreaRegistrationContext(string moduleAreaName, string moduleName, RouteCollection routes, object state)
     : base(moduleName, routes, state)
 {
     typeof(AreaRegistrationContext).GetProperty(((MemberExpression)((Expression <Func <AreaRegistrationContext, string> >)((obj) => obj.AreaName)).Body).Member.Name, BindingFlags.Instance | BindingFlags.Public).SetValue(this, AreaHelpers.FormatMvcAreaName(this.ModuleAreaName = moduleAreaName, this.ModuleName = moduleName), null);
 }