public static PlaylistWithUserDTO Map(Playlist playlist, UserDTO user) { var playlistDTO = new PlaylistWithUserDTO() { Playlist = Mapper.Map<Playlist, PlaylistDTO>(playlist), User = user }; return playlistDTO; }
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; }