public ActionResult getStatisticPhimForGenre() { FilmService filmService = new FilmService(); Dictionary<string, int> result = filmService.getStatisticPhimForGenre(); string temp = "["; int i = 0; foreach(string key in result.Keys) { string t = ""; t += "['" + key + "', " + result[key] +"]"; if(i < result.Count - 1) { t += ","; } temp += t; i++; } temp += "]"; temp = temp.Replace("\'", "\""); return Content(temp); }