示例#1
0
        public List <DataChart> ExtractGraphList(int id)
        {
            InitNonExistingRepo();

            DashItem         dashItem = repo.ReadDashItemWithGraph(id);
            List <DataChart> listData = new List <DataChart>();

            foreach (GraphData graph in dashItem.Graphdata)
            {
                listData.Add(new DataChart
                {
                    //controleren duplicaten DB
                    label = graph.Label,
                    value = graph.Value
                });
            }

            return(listData);
        }