Ejemplo n.º 1
0
        public async Task <IActionResult> DeleteJob(string Id)
        {
            await _storage.DeleteMonitorJob(Id).ConfigureAwait(false);

            await _scheduleService.UpdateMonitorJobAsync();

            return(Json(new HttpResultEntity(1, "ok", null)));
        }
Ejemplo n.º 2
0
        public async Task <string> DeleteJob(ByIdRequest req)
        {
            await _storage.DeleteMonitorJob(req.Id);

            await _scheduleService.UpdateMonitorJobAsync();

            return(Json(true));
        }
Ejemplo n.º 3
0
        public async Task <string> DeleteJob(ByIdRequest req)
        {
            await _storage.DeleteMonitorJob(req.Id);

            await _scheduleService.UpdateMonitorJobAsync();

            return(Json(new HttpResultEntity(1, "ok", null)));
        }
Ejemplo n.º 4
0
        public async Task <string> DeleteJob(ByIdRequest req)
        {
            var deleteJob = await _storage.GetMonitorJob(req.Id.ToLong());

            await _storage.DeleteMonitorJob(req.Id.ToLong());

            await _scheduleService.UpdateMonitorJobAsync(deleteJob);

            return(Json(true));
        }