public ActionResult AllUndo(string id) { try { var deleteId = id.Split(','); for (var i = 0; i < deleteId.Length; i++) { ApplyitemDao.Delete("APPLYDETAIL_ID", deleteId[i]); AppDao.Delete("APPLYDETAIL_ID", deleteId[i]); } return(Json(new { isok = true }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { LogHelper.ErrorLog("删除出错", ex); return(Json(new { isok = false }, JsonRequestBehavior.AllowGet)); } }
public ActionResult Delete(string id) { try { var deleteId = id.Split(','); for (var i = 0; i < deleteId.Length; i++) { ApplyitemDao.Delete("APPLYDETAIL_ID", deleteId[i]); AppDao.Delete("APPLYDETAIL_ID", deleteId[i]); } return(RedirectToAction("Index")); } catch (Exception ex) { LogHelper.ErrorLog("删除出错", ex); return(RedirectToAction("Error", "Home")); } }
public JsonResult Delete(string staffCode, string appId) { AppDao appDao = new AppDao(); return(Json(appDao.Delete(staffCode, appId))); }