public ActionResult Payment(PaymentInfo addPayment) { try { if (ModelState.IsValid) { //addPayment.DateCreated = DateTime.Now; if (addPayment.DateExpire > DateTime.Now) { if (PaymentDAO.CreatePayment(addPayment)) { Alert("Register payment account successfully. Please wait until we activate your payment. Thank you! ", NotificationType.success); return(RedirectToAction("Index", "Home")); } } Alert("Expire Date must be date in future", NotificationType.error); } return(View()); } catch (Exception e) { Console.WriteLine(e.Message); return(View()); throw; } }
public static bool CreatePayment(Payment p) { return(PaymentDAO.CreatePayment(p)); }
public Boolean CreatePayment(ref PaymentBDO payment, ref string message) { return(pDAO.CreatePayment(ref payment, ref message)); }