public async Task <CountResult> DeleteInvoiceNumberHistoriesAsync(string SessionKey, int CompanyId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await invoiceNumberHistoryProcessor.DeleteAsync(CompanyId, token); return new CountResult { ProcessResult = new ProcessResult { Result = true }, Count = result, }; }, logger)); }
public async Task <ActionResult <int> > DeleteInvoiceNumberHistories([FromBody] int companyId, CancellationToken token) => await invoiceNumberHistoryProcessor.DeleteAsync(companyId, token);