Example #1
0
        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)
            });
Example #2
0
 public Task <ReplayDTO> GetAsync(Guid replayId) => _ingestService.GetReplayDTOAsync(replayId);