public static AppUsersScreen MapFromDal(DTO.AppUsersScreen appUsersScreen) { var res = appUsersScreen == null ? null : new AppUsersScreen { Id = appUsersScreen.Id, CreatedAt = appUsersScreen.CreatedAt, ChangedAt = appUsersScreen.ChangedAt, CreatedBy = appUsersScreen.CreatedBy, ChangedBy = appUsersScreen.ChangedBy, AppUserId = appUsersScreen.AppUserId, Screen = ScreenMapper.MapFromDal(appUsersScreen.Screen), ScreenId = appUsersScreen.ScreenId }; return(res ?? default !); }
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 !); }
public static PictureInScreen MapFromDal(DTO.PictureInScreen pictureInScreen) { var res = pictureInScreen == null ? null : new PictureInScreen { Id = pictureInScreen.Id, CreatedAt = pictureInScreen.CreatedAt, ChangedAt = pictureInScreen.ChangedAt, CreatedBy = pictureInScreen.CreatedBy, ChangedBy = pictureInScreen.ChangedBy, PictureId = pictureInScreen.PictureId, Picture = PictureMapper.MapFromDal(pictureInScreen.Picture), ScreenId = pictureInScreen.ScreenId, Screen = ScreenMapper.MapFromDal(pictureInScreen.Screen), IsBackgroundPicture = pictureInScreen.IsBackgroundPicture, ShowAddSeconds = pictureInScreen.ShowAddSeconds }; return(res ?? default !); }