Example #1
0
        public async Task <IActionResult> OnPostAbortAsync(string id)
        {
            await _longTaskJobProvider.CancelJob(id);

            return(RedirectToPage());
        }
Example #2
0
        public async Task <IActionResult> Delete(string id)
        {
            await _longTaskApiProvider.CancelJob(id);

            return(NoContent());
        }