示例#1
0
 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));
 }
示例#2
0
 public async Task <ActionResult <int> > Delete([FromBody] int companyId, CancellationToken token)
 => await closingProcessor.DeleteAsync(companyId, token);