public static async Task DoSyncARInvoice() { var hour = DateTime.Now.Hour; if (hour >= 8 && hour <= 20) { var arInvoiceService = new ARInvoiceService(); await arInvoiceService.SyncARInvoices(); } }
public async Task DoSyncARInvoice(Guid sessionId) { var arInvoiceService = new ARInvoiceService(sessionId); await arInvoiceService.SyncARInvoices(); }