Beispiel #1
0
        public JsonResult ColorUsageData()
        {
            Dictionary <string, int> percentList = new Dictionary <string, int>();

            foreach (var item in _carRepository.ColorUsagePercent())
            {
                percentList.Add(item.Color, item.Percent);
            }

            return(new JsonResult(percentList));
        }