コード例 #1
0
        public static DalDto.AppUsersScreen MapFromExternal(BllDto.AppUsersScreen appUsersScreen)
        {
            var res = appUsersScreen == null ? null : new DalDto.AppUsersScreen
            {
                Id        = appUsersScreen.Id,
                CreatedAt = appUsersScreen.CreatedAt,
                ChangedAt = appUsersScreen.ChangedAt,
                CreatedBy = appUsersScreen.CreatedBy,
                ChangedBy = appUsersScreen.ChangedBy,
                AppUserId = appUsersScreen.AppUserId,
                Screen    = ScreenMapper.MapFromExternal(appUsersScreen.Screen),
                ScreenId  = appUsersScreen.ScreenId
            };

            return(res ?? default !);
        }
コード例 #2
0
        public static DalDto.ScheduleInScreen MapFromExternal(BllDto.ScheduleInScreen scheduleInScreen)
        {
            var res = scheduleInScreen == null ? null : new DalDto.ScheduleInScreen
            {
                Id         = scheduleInScreen.Id,
                CreatedAt  = scheduleInScreen.CreatedAt,
                ChangedAt  = scheduleInScreen.ChangedAt,
                CreatedBy  = scheduleInScreen.CreatedBy,
                ChangedBy  = scheduleInScreen.ChangedBy,
                ScheduleId = scheduleInScreen.ScheduleId,
                Schedule   = ScheduleMapper.MapFromExternal(scheduleInScreen.Schedule),
                ScreenId   = scheduleInScreen.ScreenId,
                Screen     = ScreenMapper.MapFromExternal(scheduleInScreen.Screen)
            };

            return(res ?? default !);
        }
コード例 #3
0
        public static DalDto.PictureInScreen MapFromExternal(BllDto.PictureInScreen pictureInScreen)
        {
            var res = pictureInScreen == null ? null : new DalDto.PictureInScreen
            {
                Id                  = pictureInScreen.Id,
                CreatedAt           = pictureInScreen.CreatedAt,
                ChangedAt           = pictureInScreen.ChangedAt,
                CreatedBy           = pictureInScreen.CreatedBy,
                ChangedBy           = pictureInScreen.ChangedBy,
                PictureId           = pictureInScreen.PictureId,
                Picture             = PictureMapper.MapFromExternal(pictureInScreen.Picture),
                ScreenId            = pictureInScreen.ScreenId,
                Screen              = ScreenMapper.MapFromExternal(pictureInScreen.Screen),
                IsBackgroundPicture = pictureInScreen.IsBackgroundPicture,
                ShowAddSeconds      = SecondsValueManager.GetIntValue(pictureInScreen.ShowAddSeconds)
            };

            return(res ?? default !);
        }