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