Ejemplo n.º 1
0
 public MeetingViewModel ToViewModel(Meeting meeting)
 {
     MeetingID = meeting.MeetingID;
         Title = meeting.Title;
         Start = meeting.Start;
         StartTimezone = meeting.StartTimezone;
         End = meeting.End;
         EndTimezone = meeting.EndTimezone;
         Description = meeting.Description;
         IsAllDay = meeting.IsAllDay;
         RecurrenceRule = meeting.RecurrenceRule;
         RecurrenceException = meeting.RecurrenceException;
         RecurrenceID = meeting.RecurrenceID;
         RoomID = meeting.RoomID;
     return this;
 }
Ejemplo n.º 2
0
        public Meeting ToEntity()
        {
            var meeting = new Meeting
            {
                MeetingID = MeetingID,
                Title = Title,
                Start = Start,
                StartTimezone = StartTimezone,
                End = End,
                EndTimezone = EndTimezone,
                Description = Description,
                IsAllDay = IsAllDay,
                RecurrenceRule = RecurrenceRule,
                RecurrenceException = RecurrenceException,
                RecurrenceID = RecurrenceID,
                RoomID = RoomID
            };

            return meeting;
        }