public Task RemoveBadgeAsync(string id) { var partitionKey = MenuBadgeEntity.GeneratePartitionKey(); var rowKey = MenuBadgeEntity.GenerateRowKey(id); return(_tableStorage.DeleteAsync(partitionKey, rowKey)); }
public async Task <IEnumerable <IMenuBadge> > GetBadesAsync() { var partitionKey = MenuBadgeEntity.GeneratePartitionKey(); return(await _tableStorage.GetDataAsync(partitionKey)); }
public Task SaveBadgeAsync(string id, string value) { var entity = MenuBadgeEntity.Create(id, value); return(_tableStorage.InsertOrReplaceAsync(entity)); }