public async Task <PublicationComment> GetCommentByIdAsync(string id) { var comment = await commentsApi.GetByIdAsync(id); return(comment == null ? null : ToDomain(comment)); }
public async Task <PublicationComment> GetByIdAsync(string id) { var comment = await commentsApi.GetByIdAsync(id); return(ToDomain(comment, comment == null ? null : KeysBuilder.PublicationFromCommentKey(comment.Key))); }