public static ReportRowEntity Create(IKycOfficerStatsDataReport rowObj, string rowId) { var jsonRow = JsonConvert.SerializeObject(rowObj, Formatting.None, new JsonSerializerSettings { DateTimeZoneHandling = DateTimeZoneHandling.Unspecified }); return(new ReportRowEntity() { PartitionKey = GeneratePartitionKey(rowObj.ReportDay), RowKey = rowId, Timestamp = DateTimeOffset.UtcNow, ReportType = KycReportType.KycOfficerStats, JsonRow = jsonRow }); }
public async Task InsertRow(IKycOfficerStatsDataReport row) { var reportDataRow = KycOfficerStatsReportEntity.Create(row, row.RowId); await _tableStorage.InsertOrReplaceAsync(reportDataRow); }