예제 #1
0
 public async Task <CountResult> DeleteAsync(string SessionKey, int CompanyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await companyProcessor.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 companyProcessor.DeleteAsync(companyId, token);