public async Task <IBlogCommentData> GetBlogCommentAsync(string blogId, string commentId)
        {
            var partitionKey = BlogCommentEntity.GeneratePartitionKey(blogId);
            var rowKey       = BlogCommentEntity.GenerateRowKey(commentId);

            return(await _blogCommentsTableStorage.GetDataAsync(partitionKey, rowKey));
        }
        public async Task DeleteAsync(string blogId, string commentId)
        {
            var partitionKey = BlogCommentEntity.GeneratePartitionKey(blogId);
            var rowKey       = BlogCommentEntity.GenerateRowKey(commentId);

            await _blogCommentsTableStorage.DeleteAsync(partitionKey, rowKey);
        }
        public Task UpdateAsync(IBlogCommentData blogCommentData, string blogId = null)
        {
            var partitionKey = blogId == null?BlogCommentEntity.GeneratePartitionKey(blogCommentData.BlogId) : BlogCommentEntity.GeneratePartitionKey(blogId);

            var rowKey = BlogCommentEntity.GenerateRowKey(blogCommentData.Id);

            return(_blogCommentsTableStorage.ReplaceAsync(partitionKey, rowKey, itm =>
            {
                itm.Update(blogCommentData);
                return itm;
            }));
        }
        public async Task <IEnumerable <IBlogCommentData> > GetBlogCommentsAsync(string blogId)
        {
            var partitionKey = BlogCommentEntity.GeneratePartitionKey(blogId);

            return(await _blogCommentsTableStorage.GetDataAsync(partitionKey));
        }