Пример #1
0
        public static PlaylistWithUserDTO Map(Playlist playlist, UserDTO user)
        {
            var playlistDTO = new PlaylistWithUserDTO()
            {
                Playlist = Mapper.Map<Playlist, PlaylistDTO>(playlist),
                User = user
            };

            return playlistDTO;
        }
Пример #2
0
 public static PageInfoDTO Map(LocalBusiness localBusiness,
     UserDTO user, string appPath, string locale)
 {
     var pageDTO = LocalBusinessDTOFactory.Map<PageInfoDTO>(
         localBusiness, appPath, locale);
     pageDTO.User = user;
     pageDTO.DisplayLocale = Thread.CurrentThread.CurrentUICulture.Name;
     pageDTO.IsRightToLeft =
         Thread.CurrentThread.CurrentUICulture.TextInfo.IsRightToLeft;
     return pageDTO;
 }