Esempio n. 1
0
        public List <double> GetCurrentConsumptionValuesByYear(int materialId, int year)
        {
            IEnumerable <ConsumptionDto> consumption = _consumptionService.GetCurrentConsumptionYear(materialId, year);
            List <double> currentConsumption         = new List <double>(12);

            foreach (var item in consumption)
            {
                currentConsumption.Add(item.TuketimMiktari);
            }
            return(currentConsumption);
        }