Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <int> > DeleteLogo([FromBody] int companyId, CancellationToken token)
 => await companyLogoProcessor.DeleteByCompanyIdAsync(companyId, token);