Exemplo n.º 1
0
 public static Room Create(IGraphSchedule schedule)
 {
     // build up the room with validation and addtl fields
     return(new Room
     {
         RoomName = GetRoomName(schedule.scheduleId),
         RoomId = schedule.scheduleId,
         Schedule = RoomSchedule.Create(schedule)
     });
 }
Exemplo n.º 2
0
        public static IRoomSchedule Create(IGraphSchedule sched)
        {
            var roomSched = new RoomSchedule
            {
                ScheduleItems = new List <IRoomScheduleItem>()
            };

            roomSched.ScheduleItems = sched.scheduleItems.Select(RoomScheduleItem.Create).ToList();
            return(roomSched);
        }