/// <summary> /// Starts the application /// </summary> public static void Start() { Crud.RouteConfig.RegisterRoutes(RouteTable.Routes); Crud.BundleConfig.RegisterBundles(BundleTable.Bundles); System.Web.Mvc.ControllerBuilder.Current.DefaultNamespaces.Add("Psns.Common.Mvc.Crudified.Controllers"); WebCodeRazorHost.AddGlobalImport("System.Web.Optimization"); WebCodeRazorHost.AddGlobalImport("Psns.Common.Mvc.ViewBuilding.Menu"); GlobalMenu.ContextMenu = new Infrastructure.ContextMenu(); }
/// <summary> /// Starts the application /// </summary> public static void Start() { Crud.RouteConfig.RegisterRoutes(RouteTable.Routes); Crud.BundleConfig.RegisterBundles(BundleTable.Bundles); Crud.WebApiConfig.Register(GlobalConfiguration.Configuration); System.Web.Mvc.ControllerBuilder.Current.DefaultNamespaces.Add("Psns.Common.Mvc.Crudified.Controllers"); WebCodeRazorHost.AddGlobalImport("System.Web.Optimization"); WebCodeRazorHost.AddGlobalImport("Psns.Common.Mvc.ViewBuilding.Menu"); GlobalConfiguration.Configuration .Formatters .JsonFormatter .SerializerSettings .ContractResolver = new CamelCasePropertyNamesContractResolver(); GlobalMenu.ContextMenu = new Infrastructure.ContextMenu(); }
public static void InitializeApplication() { WebCodeRazorHost.AddGlobalImport("MvcMate.Web.Mvc.Html"); }
public static void InitializeApplication() { WebCodeRazorHost.AddGlobalImport("Website.ContentFileHelper"); }
/// <summary> /// Starts the application /// </summary> public static void Start() { PsnsThemeBundleConfig.RegisterBundles(BundleTable.Bundles); WebCodeRazorHost.AddGlobalImport("System.Web.Optimization"); WebCodeRazorHost.AddGlobalImport("Psns.Common.Mvc.Skin.Menu"); }