示例#1
0
        internal IEnumerable <Month> CreateForMonth(List <Block> blocks)
        {
            var months = new List <Month>();

            foreach (var block in blocks)
            {
                var month = new DayDtoCreator().CreateForMonth(block);
                months.Add(month);
            }
            return(months);
        }
示例#2
0
        internal IEnumerable <Year> CreateForYear(List <Block> blocks)
        {
            var years = new List <Year>();

            foreach (var block in blocks)
            {
                var year = new DayDtoCreator().CreateForYear(block);
                years.Add(year);
            }
            return(years);
        }
示例#3
0
        internal IEnumerable <Day> CreateForDays(List <Block> blocks)
        {
            var days = new List <Day>();

            foreach (var block in blocks)
            {
                var day = new DayDtoCreator().CreateForDays(block);
                days.Add(day);
            }
            return(days);
        }