Пример #1
0
 private async Task DeleteInvoiceIdIndexAsync(InvoiceEntity entity)
 {
     await _invoiceIdIndexStorage.DeleteAsync(GetInvoiceIdIndexPartitionKey(entity.RowKey), GetInvoiceIdIndexRowKey());
 }
Пример #2
0
        public async Task <Invoice> GetAsync(string merchantId, string invoiceId)
        {
            InvoiceEntity entity = await _storage.GetDataAsync(GetPartitionKey(merchantId), GetRowKey(invoiceId));

            return(Mapper.Map <Invoice>(entity));
        }
Пример #3
0
        private async Task InsertInvoiceIdIndexAsync(InvoiceEntity entity)
        {
            var index = AzureIndex.Create(GetInvoiceIdIndexPartitionKey(entity.RowKey), GetInvoiceIdIndexRowKey(), entity);

            await _invoiceIdIndexStorage.InsertOrReplaceAsync(index);
        }