public async Task <ExistResult> ExistAsync(string SessionKey, int companyId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await reminderProcessor.ExistAsync(companyId, token); return new ExistResult { ProcessResult = new ProcessResult { Result = true }, Exist = result, }; }, logger)); }
public async Task <bool> Exist([FromBody] int companyId, CancellationToken token) => await reminderProcessor.ExistAsync(companyId, token);