public async Task <PlayerPostDTO> GetPostDTOAsync(Guid id) { Post post = GetPost(id); PlayerPostDTO postDTO = post?.Adapt <PlayerPostDTO>(); return(post?.ReplayId is null ? postDTO : postDTO with { Replay = await _replayService.GetReplayDTOAsync(post.ReplayId.Value) });
public Task <ReplayDTO> GetAsync(Guid replayId) => _ingestService.GetReplayDTOAsync(replayId);