Exemplo n.º 1
0
        public static EventInSchedule MapFromDal(DTO.EventInSchedule eventInSchedule)
        {
            var res = eventInSchedule == null ? null : new EventInSchedule
            {
                Id         = eventInSchedule.Id,
                CreatedAt  = eventInSchedule.CreatedAt,
                ChangedAt  = eventInSchedule.ChangedAt,
                CreatedBy  = eventInSchedule.CreatedBy,
                ChangedBy  = eventInSchedule.ChangedBy,
                ScheduleId = eventInSchedule.ScheduleId,
                Schedule   = ScheduleMapper.MapFromDal(eventInSchedule.Schedule),
                Event      = EventMapper.MapFromDal(eventInSchedule.Event),
                EventId    = eventInSchedule.EventId
            };

            return(res ?? default !);
        }
Exemplo n.º 2
0
        public static ScheduleInScreen MapFromDal(DTO.ScheduleInScreen scheduleInScreen)
        {
            var res = scheduleInScreen == null ? null : new ScheduleInScreen
            {
                Id         = scheduleInScreen.Id,
                CreatedAt  = scheduleInScreen.CreatedAt,
                ChangedAt  = scheduleInScreen.ChangedAt,
                CreatedBy  = scheduleInScreen.CreatedBy,
                ChangedBy  = scheduleInScreen.ChangedBy,
                ScheduleId = scheduleInScreen.ScheduleId,
                Schedule   = ScheduleMapper.MapFromDal(scheduleInScreen.Schedule),
                ScreenId   = scheduleInScreen.ScreenId,
                Screen     = ScreenMapper.MapFromDal(scheduleInScreen.Screen)
            };

            return(res ?? default !);
        }
Exemplo n.º 3
0
        public static SubjectInSchedule MapFromDal(DTO.SubjectInSchedule subjectInSchedule)
        {
            var res = subjectInSchedule == null ? null : new SubjectInSchedule
            {
                Id               = subjectInSchedule.Id,
                CreatedAt        = subjectInSchedule.CreatedAt,
                ChangedAt        = subjectInSchedule.ChangedAt,
                CreatedBy        = subjectInSchedule.CreatedBy,
                ChangedBy        = subjectInSchedule.ChangedBy,
                SubjectId        = subjectInSchedule.SubjectId,
                Subject          = SubjectMapper.MapFromDal(subjectInSchedule.Subject),
                ScheduleId       = subjectInSchedule.ScheduleId,
                Schedule         = ScheduleMapper.MapFromDal(subjectInSchedule.Schedule),
                UniqueIdentifier = subjectInSchedule.UniqueIdentifier,
                SubjectType      = subjectInSchedule.SubjectType,
                Rooms            = subjectInSchedule.Rooms,
                Groups           = subjectInSchedule.Groups,
                StartDateTime    = subjectInSchedule.StartDateTime,
                EndDateTime      = subjectInSchedule.EndDateTime
            };

            return(res ?? default !);
        }