public ActionResult Delete(int id, Payment deletePayment) { var paymentDb = new PaymentBLL(); bool deleteOK = paymentDb.deletePayment(id); if (deleteOK) { return(RedirectToAction("List")); } return(View()); }