Beispiel #1
0
        public bool updatePayOrder(UpdateOrderPayArgs args)
        {
            try
            {
                var order = this.db.Order_Hs.Where(m => m.id == args.orderId).FirstOrDefault();
                if (order == null)
                {
                    return(false);
                }

                order.isPay = args.isPay;
                this.db.Order_Hs.Update(order);
                this.db.SaveChanges();
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Beispiel #2
0
        public JsonResult updatePayOrder(UpdateOrderPayArgs args)
        {
            var res = orderService.updatePayOrder(args);

            return(Result(res));
        }