public async Task <string> InsertAsync(IFileInfo fileInfo) { var entity = new FileInfoEntity { RowKey = GetRowKey(), PartitionKey = GetPartitionKey(fileInfo.InvoiceId) }; Mapper.Map(fileInfo, entity); await _storage.InsertAsync(entity); return(entity.RowKey); }
public async Task <IFileInfo> GetAsync(string invoiceId, string fileId) { FileInfoEntity entity = await _storage.GetDataAsync(GetPartitionKey(invoiceId), fileId); return(Mapper.Map <FileInfo>(entity)); }