Beispiel #1
0
        public MonthYearDTO GetSpecificMonthYear()
        {
            MonthYearDTO m = new MonthYearDTO()
            {
                Month = SpecificMonth ?? 0, Year = SpecificYear ?? 0
            };

            if (m.IsValidMonthYear())
            {
                return(m);
            }
            else
            {
                return(null);
            }
        }
Beispiel #2
0
        public MonthYearDTO GetToMonthYear()
        {
            MonthYearDTO m = new MonthYearDTO()
            {
                Month = ToMonth ?? 0, Year = ToYear ?? 0
            };

            if (m.IsValidMonthYear())
            {
                return(m);
            }
            else
            {
                return(null);
            }
        }