Ejemplo n.º 1
0
        public object GetStyle(BeetleX.FastHttpApi.IHttpContext context)
        {
            string style = context.Request.Cookies["CodeStyle"];

            if (style == null)
            {
                style = "railscasts";
            }
            return(CodeStyles.GetCss(style));
        }
Ejemplo n.º 2
0
        public object WebsiteInfo(BeetleX.FastHttpApi.IHttpContext context)
        {
            string style = context.Request.Cookies["CodeStyle"];

            if (style == null)
            {
                style = "railscasts";
            }
            return(new
            {
                Webconfig.Default.Data.Title,
                CodeStyles = CodeStyles.GetNames(),
                SelectStyle = style
            });
        }