//public ActionResult Return_Url(string id)
        //{
        //    var order = db.Orders.Find(id);

        //    ViewBag.Order = order;
        //    ViewBag.Account = customer_Service.GetCustomer(order.Email);
        //    ViewBag.Address = address_Service.GetOrderAddresses().Find(x => x.Order_ID == order.Order_ID);
        //    ViewBag.Items = order_Service.GetOrderItems(order.Order_ID);
        //    ViewBag.Total = order_Service.GetOrderTotal(order.Order_ID);
        //    return View();
        //}
        public ActionResult Payment_Successfull(string id)
        {
            try
            {
                var order = _orderRepository.GetById(id);
                var items = _orderItemRepository.Find(predicate: x => x.Order_ID == order.OrderNo).ToList();
                foreach (var tem in items)
                {
                    cart_Service.UpdateQuantity(tem.Item.ItemCode, tem.ItemCode);
                }
                cart_Service.AddPayment(order);
                OrderDetailConFirm odcf = new OrderDetailConFirm();
                Order orderT            = _orderRepository.GetById(id);
                odcf.order = orderT;
                //odcf.address = context.OrderAddresses.ToList().Find(x => x.OrderNo == _orderRepository.GetById(id).OrderNo);
                //ViewBag.Items = context.OrderItems.ToList().FindAll(x => x.Order_ID == orderT.OrderNo).ToList();
                //Order_Business.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());
        }