예제 #1
0
        public WelcomeModule()
        {
            string baseUrl = InfoPageConfigurator.Configuration.BaseUrl;

            baseUrl            = (baseUrl) ?? "info";
            Get["/" + baseUrl] = _ =>
            {
                var model = InfoHelper.GetInfoPage(InfoPageConfigurator.Configuration);

                return(View["home.html", model]);
            };
        }
예제 #2
0
        //Get Private/info

        public ActionResult Info()
        {
            var model = InfoHelper.GetInfoPage(InfoPageConfigurator.Configuration);

            return(View(model));
        }