public async Task <ExistResult> ExistsAsync(string SessionKey, int CompanyId, int ImportType, int ImportSubType) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await taskScheduleProcessor.ExistsAsync(new TaskScheduleSearch { CompanyId = CompanyId, ImportType = ImportType, ImportSubType = ImportSubType, }, token); return new ExistResult { ProcessResult = new ProcessResult { Result = true }, Exist = result, }; }, logger)); }
public async Task <ActionResult <bool> > Exists(TaskScheduleSearch option, CancellationToken token) => await taskScheduleProcessor.ExistsAsync(option, token);