示例#1
0
 internal static List <ReturnData> FillTotalyCases(int region, int county)
 {
     return(DataReaderCounty.ReadCountyData(region, county)
            .OrderBy(d => d.data)
            .Select((s) => new ReturnData
     {
         data = s.data,
         lbl = s.data.ToString("dd/MM/yy"),
         value = s.totale_casi
     }
                    )
            .ToList());
 }
示例#2
0
        internal static List <ReturnData> FillDailyCases(int region, int county)
        {
            var list = DataReaderCounty.ReadCountyData(region, county)
                       .ToList();

            return(list
                   .Select((curr, i) => new ReturnData()
            {
                data = curr.data,
                value = i > 0 ? curr.totale_casi - list[i - 1].totale_casi : curr.totale_casi
            }
                           )
                   .ToList());
        }