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