public ActionResult Register(Payment inPayment) { if (ModelState.IsValid) { var paymentDb = new PaymentBLL(); bool insertOK = paymentDb.makeNewPayment(inPayment); if (insertOK) { return(RedirectToAction("List")); } } return(View()); }