public JsonResult Disable(SchedulerTaskEntity task) { var success = true; var message = string.Empty; ISchedulerTask taskbll = new SchedulerTask(); try { taskbll.Disable(task); } catch (Exception ex) { success = false; message = ex.Message; } return(Json(new { success, message })); }