public Task RemoveChannelAsync(string channelId)
 {
     return(_storage.DeleteIfExistAsync(ReportChannelEntity.GeneratePartitionKey(), ReportChannelEntity.GenerateRowKey(channelId)));
 }
        public async Task <List <IReportChannel> > GetAllChannelsAsync()
        {
            var data = await _storage.GetDataAsync(ReportChannelEntity.GeneratePartitionKey());

            return(data.Cast <IReportChannel>().ToList());
        }
        public Task AddOrUpdateChannelAsync(IReportChannel channel)
        {
            var entity = new ReportChannelEntity(channel);

            return(_storage.InsertOrReplaceAsync(entity));
        }