Exemple #1
0
        public async Task InsertAsync(SummaryReport summaryReport)
        {
            var entity = new SummaryReportEntity(GetPartitionKey(), GetRowKey(summaryReport.AssetPairId));

            Mapper.Map(summaryReport, entity);

            await _storage.InsertAsync(entity);
        }
Exemple #2
0
        public async Task <SummaryReport> GetByAssetPairAsync(string assetPairId)
        {
            SummaryReportEntity entity = await _storage.GetDataAsync(GetPartitionKey(), GetRowKey(assetPairId));

            return(Mapper.Map <SummaryReport>(entity));
        }