Ejemplo n.º 1
0
        public ActionResult IndividualChart(int chartId, bool withInsights, bool withComments, string insights, int chartTypeId, string chartName, string from, string to)
        {
            var comments = _commentService.GetCommentsByChart(chartId);
            var model    = new IndividualChartViewModel()
            {
                ChartId      = chartId,
                Insights     = insights,
                WithInsights = withInsights,
                WithComments = withComments,
                ChartTypeId  = chartTypeId,
                ChartName    = chartName,
                Comments     = comments,
                From         = from,
                To           = to
            };

            return(View(model));
        }
Ejemplo n.º 2
0
 public CommentsResponse GetCommentsByChart(int smartChartId)
 {
     return(_commentService.GetCommentsByChart(smartChartId));
 }
Ejemplo n.º 3
0
 public JsonResult GetCommentsByChart(int smartChartId)
 {
     return(Json(_commentService.GetCommentsByChart(smartChartId), JsonRequestBehavior.AllowGet));
 }