Example #1
0
        public ActionResult Payment_Successfull(string id)
        {
            try
            {
                var order = order_Service.GetOrder(id);
                order_Service.Update_Stock(id);
                order_Service.AddPayment(order.Order_ID);
                order_Service.EstimateDeliveryDateReport(order);


                if (affiliate_Service.GetAffiliateJoiners().FirstOrDefault(x => x.New_Customer_Email == order.Email) != null)
                { /* deposit benefits */
                    affiliate_Service.PayAffiliates(order.Email, (decimal)order_Service.GetOrderTotal(order.Order_ID));
                }
            }
            catch (Exception ex) { }
            return(View());
        }