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); }
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); }
public static RouteValueDictionary GetRouteViewDictionary(string areaName, string moduleName) { RouteValueDictionary routeValues = new RouteValueDictionary(); routeValues["area"] = AreaHelpers.FormatMvcAreaName(areaName, moduleName); return(routeValues); }
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); }