예제 #1
0
        public Task RemoveBadgeAsync(string id)
        {
            var partitionKey = MenuBadgeEntity.GeneratePartitionKey();
            var rowKey       = MenuBadgeEntity.GenerateRowKey(id);

            return(_tableStorage.DeleteAsync(partitionKey, rowKey));
        }
예제 #2
0
        public async Task <IEnumerable <IMenuBadge> > GetBadesAsync()
        {
            var partitionKey = MenuBadgeEntity.GeneratePartitionKey();

            return(await _tableStorage.GetDataAsync(partitionKey));
        }
예제 #3
0
        public Task SaveBadgeAsync(string id, string value)
        {
            var entity = MenuBadgeEntity.Create(id, value);

            return(_tableStorage.InsertOrReplaceAsync(entity));
        }