public Task UpdateAsync(IBlogData blogData) { var partitionKey = BlogEntity.GeneratePartitionKey(); var rowKey = BlogEntity.GenerateRowKey(blogData.Id); return(_blogsTableStorage.ReplaceAsync(partitionKey, rowKey, itm => { itm.Update(blogData); return itm; })); }
public async Task <IEnumerable <IBlogData> > GetBlogsAsync() { var partitionKey = BlogEntity.GeneratePartitionKey(); return(await _blogsTableStorage.GetDataAsync(partitionKey)); }