public static AddressStatisticsEntity Create(IAddressStatistics statistics) { return(new AddressStatisticsEntity { PartitionKey = GetPartitionKey(), Address = GetRowKey(statistics.Address), FailedCashouts = statistics.FailedCashouts, TotalCashouts = statistics.TotalCashouts, }); }
public async Task SaveAsync(IAddressStatistics address) { var entity = AddressStatisticsEntity.Create(address); await _table.InsertOrReplaceAsync(entity); }