public async Task InsertAsync(SummaryReport summaryReport) { var entity = new SummaryReportEntity(GetPartitionKey(), GetRowKey(summaryReport.AssetPairId)); Mapper.Map(summaryReport, entity); await _storage.InsertAsync(entity); }
public async Task <SummaryReport> GetByAssetPairAsync(string assetPairId) { SummaryReportEntity entity = await _storage.GetDataAsync(GetPartitionKey(), GetRowKey(assetPairId)); return(Mapper.Map <SummaryReport>(entity)); }