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