Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
        /// <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();
        }
Ejemplo n.º 3
0
 public static void InitializeApplication()
 {
     WebCodeRazorHost.AddGlobalImport("MvcMate.Web.Mvc.Html");
 }
 public static void InitializeApplication()
 {
     WebCodeRazorHost.AddGlobalImport("Website.ContentFileHelper");
 }
Ejemplo n.º 5
0
 /// <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");
 }