Beispiel #1
0
        public async Task <CountResult> DeleteAsync(string SessionKey, int CompanyId, int ImportType, int ImportSubType)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await taskScheduleProcessor.DeleteAsync(CompanyId, ImportType, ImportSubType);

                return new CountResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Count = result,
                };
            }, logger));
        }
Beispiel #2
0
 public async Task <ActionResult <int> > Delete(TaskSchedule schedule, CancellationToken token)
 => await taskScheduleProcessor.DeleteAsync(schedule.CompanyId, schedule.ImportType, schedule.ImportSubType, token);