Example #1
0
        private List <double> getConsumptions(int materialId, int year)
        {
            List <double> consumption = new List <double>();
            IEnumerable <ConsumptionDto> consumptions = _consumptionService.GetConsumptionByYear(materialId, year);

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

            return(consumption);
        }