Ejemplo n.º 1
0
        public ActionResult CreaditCardPayment(PaymentModel modelobj)
        {
            try {
                PaymentBLL bllobj = new PaymentBLL();
                int?       Result = bllobj.CreditCardPayment(modelobj);
                if (Result > 0)
                {
                    EmailMessage objemail = new EmailMessage(new EmailFromModel());
                    ViewBag.Result = "Success";
                }
                else
                {
                    EmailMessage objemail = new EmailMessage(new EmailFromModel());
                    ViewBag.Result = "Failed";
                }
            }

            catch (Exception ex)
            {
                logger.Info(ex.Message);
                logger.Debug(ex.Message);
            }
            return(View());
        }