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