public JsonResult DeleteScanJob(int jobId) { var ret = 0; ret += ScanDataBaseManager.DeleteScanJob(jobId); ret += ScanDataBaseManager.DeleteRemoteMagScan(jobId); if (ret > 0) { return(Json(new { success = "Success" }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { success = "Fail" }, JsonRequestBehavior.AllowGet)); } }