public ActionResult DeleteConfirm(int id) { if (SupplierDataAccess.Delete(id)) { return(Json(new { success = true, message = "Sukses" }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { success = false, message = SupplierDataAccess.Message }, JsonRequestBehavior.AllowGet)); } }