public static DTO.EventInSchedule MapFromDomain(EventInSchedule eventInSchedule) { var res = eventInSchedule == null ? null : new DTO.EventInSchedule { Id = eventInSchedule.Id, CreatedAt = eventInSchedule.CreatedAt, ChangedAt = eventInSchedule.ChangedAt, CreatedBy = eventInSchedule.CreatedBy, ChangedBy = eventInSchedule.ChangedBy, ScheduleId = eventInSchedule.ScheduleId, Schedule = ScheduleMapper.MapFromDomain(eventInSchedule.Schedule), Event = EventMapper.MapFromDomain(eventInSchedule.Event), EventId = eventInSchedule.EventId }; return(res ?? default !); }
public static DTO.ScheduleInScreen MapFromDomain(ScheduleInScreen scheduleInScreen) { var res = scheduleInScreen == null ? null : new DTO.ScheduleInScreen { Id = scheduleInScreen.Id, CreatedAt = scheduleInScreen.CreatedAt, ChangedAt = scheduleInScreen.ChangedAt, CreatedBy = scheduleInScreen.CreatedBy, ChangedBy = scheduleInScreen.ChangedBy, ScheduleId = scheduleInScreen.ScheduleId, Schedule = ScheduleMapper.MapFromDomain(scheduleInScreen.Schedule), ScreenId = scheduleInScreen.ScreenId, Screen = ScreenMapper.MapFromDomain(scheduleInScreen.Screen) }; return(res ?? default !); }
public static DTO.SubjectInSchedule MapFromDomain(SubjectInSchedule subjectInSchedule) { var res = subjectInSchedule == null ? null : new DTO.SubjectInSchedule { Id = subjectInSchedule.Id, CreatedAt = subjectInSchedule.CreatedAt, ChangedAt = subjectInSchedule.ChangedAt, CreatedBy = subjectInSchedule.CreatedBy, ChangedBy = subjectInSchedule.ChangedBy, SubjectId = subjectInSchedule.SubjectId, Subject = SubjectMapper.MapFromDomain(subjectInSchedule.Subject), ScheduleId = subjectInSchedule.ScheduleId, Schedule = ScheduleMapper.MapFromDomain(subjectInSchedule.Schedule), UniqueIdentifier = subjectInSchedule.UniqueIdentifier, SubjectType = subjectInSchedule.SubjectType, Rooms = subjectInSchedule.Rooms, Groups = subjectInSchedule.Groups, StartDateTime = subjectInSchedule.StartDateTime, EndDateTime = subjectInSchedule.EndDateTime }; return(res ?? default !); }