Beispiel #1
0
 public EventTimeDataDto(EventTimeData eventTimeData)
 {
     EventTimeDataId   = eventTimeData.Id;
     EventId           = eventTimeData.EventId;
     StartDate         = eventTimeData.StartDate;
     EndDate           = eventTimeData.EndDate;
     RepeatInterval    = eventTimeData.RepeatInterval;
     RepeatWeekOfMonth = eventTimeData.RepeatWeekOfMonth;
     RepeatDayOfWeek   = eventTimeData.RepeatDayOfWeek;
     RepeatMonth       = eventTimeData.RepeatMonth;
     RepeatDay         = eventTimeData.RepeatDay;
 }
Beispiel #2
0
        public EventTimeData ToEntity()
        {
            var eventTimeData = new EventTimeData
            {
                Id                = EventTimeDataId,
                EventId           = EventId,
                StartDate         = StartDate,
                EndDate           = EndDate,
                RepeatInterval    = RepeatInterval,
                RepeatWeekOfMonth = RepeatWeekOfMonth,
                RepeatDayOfWeek   = RepeatDayOfWeek,
                RepeatMonth       = RepeatMonth,
                RepeatDay         = RepeatDay
            };

            return(eventTimeData);
        }