public async Task DeleteById(string id) { await _authorTablestorage.DeleteAsync(AuthorEntity.GeneratePartitionKey(), id); }
public async Task InsertAsync(IAuthor author) { await _authorTablestorage.InsertOrMergeAsync(AuthorEntity.Create(author)); }
public async Task <IEnumerable <IAuthor> > GetList() { return(await _authorTablestorage.GetDataAsync(AuthorEntity.GeneratePartitionKey())); }
public async Task <Author> GetByIdAsync(string id) { var src = await _authorTablestorage.GetDataAsync(AuthorEntity.GeneratePartitionKey(), id); return(Author.Create(src)); }