예제 #1
0
        public GIOSList CheckForNull(GIOSList list)
        {
            GIOSList _list = new GIOSList {
                Key = list.Key, Values = list.Values.Where(i => i.Value != null).ToList()
            };

            return(_list);
        }
예제 #2
0
        public IEnumerable <SmogLevel> TranslateDataToSmogLevel(GIOSList list)
        {
            List <SmogLevel> data = new List <SmogLevel>();

            foreach (var item in list.Values)
            {
                data.Add(new SmogLevel()
                {
                    DateTime = item.Date, PM10Concentration = item.Value.Value, StationPointId = 1
                });
            }
            return(data);
        }