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