private async Task DeleteInvoiceIdIndexAsync(InvoiceEntity entity) { await _invoiceIdIndexStorage.DeleteAsync(GetInvoiceIdIndexPartitionKey(entity.RowKey), GetInvoiceIdIndexRowKey()); }
public async Task <Invoice> GetAsync(string merchantId, string invoiceId) { InvoiceEntity entity = await _storage.GetDataAsync(GetPartitionKey(merchantId), GetRowKey(invoiceId)); return(Mapper.Map <Invoice>(entity)); }
private async Task InsertInvoiceIdIndexAsync(InvoiceEntity entity) { var index = AzureIndex.Create(GetInvoiceIdIndexPartitionKey(entity.RowKey), GetInvoiceIdIndexRowKey(), entity); await _invoiceIdIndexStorage.InsertOrReplaceAsync(index); }