public async Task <IGroupResource> AddAsync(IGroupResource resource) { var entity = GroupResourceEntity.Create(resource); await _tableStorage.InsertOrMergeAsync(entity); return(entity); }
public Task DeleteAsync(string name) { return(_tableStorage.DeleteIfExistAsync(GroupResourceEntity.GeneratePartitionKey(name), GroupResourceEntity.GenerateRowKey(name))); }
public async Task <IGroupResource> GetAsync(string name) { return(await _tableStorage.GetDataAsync(GroupResourceEntity.GeneratePartitionKey(name), GroupResourceEntity.GenerateRowKey(name))); }