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

            foreach (var item in _carRepository.CarUsage())
            {
                percentList.Add(item.Car, item.Usage);
            }

            return(new JsonResult(percentList));
        }