public override void RegisterArea(AddinAreaRegistrationContext context)
        {
            context.MapRoute(
                 name: AreaName + "_default",
                 url: AreaName + "/{controller}/{action}/{id}",
                 defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                 namespaces: new[] { "Kooboo.Commerce.Search.Controllers", "Kooboo.Web.Mvc", "Kooboo.Web.Mvc.WebResourceLoader" }
            );

            Kooboo.Web.Mvc.WebResourceLoader.ConfigurationManager.RegisterSection(AreaName, AreaHelpers.CombineAreaFilePhysicalPath(AreaName, "WebResources.config"));
        }
Exemple #2
0
 public abstract void RegisterArea(AddinAreaRegistrationContext context);
 public abstract void RegisterArea(AddinAreaRegistrationContext context);