public override async Task <Post> GetItemAsync(string id) { var post = await base.GetItemAsync(id); var socialInteractions = await _socialInteractionsDocumentDatabaseRepository.GetItemByPostId(post.Id); post.SocialInteractions = socialInteractions; return(post); }
public async Task <SocialInteractions> Get([FromQuery] Guid postId) { return(await _socialInteractionsRepository.GetItemByPostId(postId)); }