Mrudul Ganpule

Mrudul Ganpule

  • NA
  • 23
  • 25.6k

passing values to method

May 6 2014 6:57 AM
I have ,
public void AddAsync<T>(T entity) where T : IEntity; method from DataService class

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().
                 

Answers (1)