Ejemplo n.º 1
0
        private ActionResult SimplePieChart(string title, string seriesName, ICollection <Tuple <string, int> > points)
        {
            Response.Cache.SetCacheability(HttpCacheability.Public);
            Response.Cache.SetMaxAge(TimeSpan.FromDays(1));
            Response.Cache.SetSlidingExpiration(true);

            return(LowercaseJson(HighchartsHelper.SimplePieChart(title, seriesName, points, false)));
        }
Ejemplo n.º 2
0
        private ActionResult SimplePieChart(string title, string seriesName, ICollection <Tuple <string, int> > points)
        {
            Response.GetTypedHeaders().CacheControl = new CacheControlHeaderValue
            {
                Public = true,
                MaxAge = TimeSpan.FromDays(1),
            };
            // TODO: implement Response.Cache.SetSlidingExpiration(true);

            return(LowercaseJson(HighchartsHelper.SimplePieChart(title, seriesName, points, false)));
        }