Esempio n. 1
0
 public ActionResult EditPaymentInfo(PaymentInfo edit)
 {
     if (ModelState.IsValid)
     {
         if (PaymentDAO.EditPaymentInfo(edit))
         {
             Alert("Edited successfully!!", NotificationType.success);
             var search = PaymentDAO.GetPayment(edit.PayId);
             if (search != null)
             {
                 return(View(search));
             }
             return(RedirectToAction("Index"));
         }
         else
         {
             Alert("Edited failed!!", NotificationType.error);
             return(View());
         }
     }
     else
     {
         Alert("Edited failed!!", NotificationType.error);
         return(View());
     }
 }