Ejemplo n.º 1
0
 public ActionResult Change(int id, Payment changePayment)
 {
     if (ModelState.IsValid)
     {
         var  paymentDb = new PaymentBLL();
         bool changeOK  = paymentDb.changePayment(id, changePayment);
         if (changeOK)
         {
             return(RedirectToAction("List"));
         }
     }
     return(View());
 }