public JsonResult DeleteDetail(string id) { int did = Int32.Parse(id); db.VT_DeleteDetailById(did); return(Json(new { success = true, message = "Deleted Successfully" }, JsonRequestBehavior.AllowGet)); }
public JsonResult DeleteDetail(string id) { try { int did = Int32.Parse(id); db.VT_DeleteDetailById(did); return(Json(new { success = true, message = "Xóa chi tiết thành công!" }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { help.LogError(ex); return(Json(new { success = false, message = "Lỗi xóa chi tiết!" }, JsonRequestBehavior.AllowGet)); } }