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)); }
public CommentsResponse GetCommentsByChart(int smartChartId) { return(_commentService.GetCommentsByChart(smartChartId)); }
public JsonResult GetCommentsByChart(int smartChartId) { return(Json(_commentService.GetCommentsByChart(smartChartId), JsonRequestBehavior.AllowGet)); }