public void AddAsync
I have class SalesReceipt
and i want to add this SalesReceipt in AddAsync method .
like
DataService dataService = new DataService(serviceContext);
OnlineSalesReceiptQBEntry SalesReceipt = new OnlineSalesReceiptQBEntry();
SalesReceipt .AutoDocNumber = "1010";
SalesReceipt .ApplyTaxAfterDiscount = "True";
dataService.AddAsync(SalesReceipt );//error line
How to call this method/ add SalesReceipt to AddAsync().
VulpesPosted May 6, 2014, 1:35 PM
As you're getting an error on this line:
dataService.AddAsync(SalesReceipt)
evidently the OnlineSalesReceiptQBEntry class doesn't implement the IEntity interface.
So, if OnlineSalesReceiptQBEntry is a class you've written yourself, you'll need to alter it so that it does implement this interface if you want to use the AddAsync method.