public ActionResult DeletePayment(int id) { try { if (PaymentDAO.DeletePayment(id)) { //Alert("Delete Payment Successfully .", NotificationType.success); return(RedirectToAction("ManagePaymentInfo")); } else { Alert("Delete error, cannot find this User!!!", NotificationType.error); return(RedirectToAction("ManagePaymentInfo")); } } catch (Exception e) { Alert(e.Message, NotificationType.error); return(RedirectToAction("ManagePaymentInfo")); throw; } }