public ActionResult Create(Payment customer) { try { dao.SaveToDatabase(customer); } catch (Exception ex) { ModelState.AddModelError("Error", ex.Message); } return(RedirectToAction("Index")); }