public async Task DeleteById(string id) { await _publishingHouseTablestorage.DeleteAsync(PublishingHouseEntity.GeneratePartitionKey(), id); }
public async Task InsertAsync(IPublishingHouse house) { await _publishingHouseTablestorage.InsertOrMergeAsync(PublishingHouseEntity.Create(house)); }
public async Task <IEnumerable <IPublishingHouse> > GetList() { return(await _publishingHouseTablestorage.GetDataAsync(PublishingHouseEntity.GeneratePartitionKey())); }
public async Task <PublishingHouse> GetByIdAsync(string id) { var src = await _publishingHouseTablestorage.GetDataAsync(PublishingHouseEntity.GeneratePartitionKey(), id); return(PublishingHouse.Create(src)); }