/// <summary> /// 启用禁用定时任务 /// </summary> /// <param name="id"></param> public ActionResult Enable(int id) { if (id > 0) { ScheduledTaskService.Enable(id); } return(View("Index")); }