예제 #1
0
        public static CommonCalendar CalendarToCommon(Calendar calendar)
        {
            CommonCalendar commonCalendar = new CommonCalendar()
            {
                Date      = calendar.Date,
                DayStatus = calendar.DayStatus
            };

            return(commonCalendar);
        }
예제 #2
0
        /****************Calendar***********************/

        public static Calendar CalendarToDB(CommonCalendar commonCalendar)
        {
            Calendar calendar = new Calendar()
            {
                Date      = commonCalendar.Date,
                DayStatus = commonCalendar.DayStatus
            };

            return(calendar);
        }