public static void Setup()
        {
            if (_IsConfigured) return;

            var virtualPathProvider = HostingEnvironment.VirtualPathProvider;
            var table = new EmbeddedViewResolver().GetEmbeddedViews();
            var embeddedProvider = new EmbeddedViewVirtualPathProvider(table);
            embeddedProvider.SetDefaultVirtualPathProvider(virtualPathProvider);
            HostingEnvironment.RegisterVirtualPathProvider(embeddedProvider);

            _IsConfigured = true;
        }
        public static void Setup()
        {
            if (_IsConfigured)
            {
                return;
            }

            var virtualPathProvider = HostingEnvironment.VirtualPathProvider;
            var table            = new EmbeddedViewResolver().GetEmbeddedViews();
            var embeddedProvider = new EmbeddedViewVirtualPathProvider(table);

            embeddedProvider.SetDefaultVirtualPathProvider(virtualPathProvider);
            HostingEnvironment.RegisterVirtualPathProvider(embeddedProvider);

            _IsConfigured = true;
        }