public TournamentAdminInfo ToTournamentAdminInfo(SanityHtmlBuilder htmlBuilder) { return(new TournamentAdminInfo { Slug = Slug?.Current, MainImage = MainImage?.Asset?.Value?.Url, Logo = Logo?.Asset?.Value?.Url, Title = Title?.GetForCurrentCulture(), Body = Body?.GetForCurrentCulture(htmlBuilder), ToornamentId = ToornamentId, RegistrationForm = RegistrationForm?.GetForCurrentCulture(), RegistrationOpen = RegistrationOpen, TelegramLink = TelegramLink, LiveStream = LiveStream, LiveChat = LiveChat, Game = Game?.Value?.ToGame(), Id = Id, SignupType = SignupType, RequiredInformation = RequiredInfo?.Select(s => s.GetForCurrentCulture()).ToList(), TeamSize = TeamSize, SoloPlayers = SoloPlayers?.Select(p => p.ToParticipant()).ToList(), CategoryIds = Categories?.Select(c => c.Ref).ToList(), Winner = Winner?.Value?.Name, Contacts = Contacts, Responsible = Responsible?.Value, ResponsibleId = Responsible?.Ref, ParticipantTeams = Teams?.Select(t => t.ToParticipant()).ToList(), }); }