public ActionResult getStatisticPhimForCountry() { FilmService filmService = new FilmService(); Dictionary<string, int> result = filmService.getStatisticPhimForCountry(); 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); }