コード例 #1
0
 public async Task <CountResult> DeleteLogoAsync(string SessionKey, int CompanyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await companyLogoProcessor.DeleteByCompanyIdAsync(CompanyId, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result
         };
     }, logger));
 }
コード例 #2
0
 public async Task <ActionResult <int> > DeleteLogo([FromBody] int companyId, CancellationToken token)
 => await companyLogoProcessor.DeleteByCompanyIdAsync(companyId, token);