Ejemplo n.º 1
0
        public JsonResult CloseOrder(long orderId)
        {
            MemberInfo umi     = CurrentUser;
            bool       isClose = OrderApplication.CloseOrder(orderId, umi.Id, umi.UserName);

            if (isClose)
            {
                return(SuccessResult("取消成功"));
            }
            else
            {
                return(ErrorResult("取消失败,该订单已删除或者不属于当前用户!"));
            }
        }
Ejemplo n.º 2
0
        public JsonResult CloseOrder(long orderId)
        {
            UserMemberInfo currentUser = base.CurrentUser;

            if (OrderApplication.CloseOrder(orderId, currentUser.Id, currentUser.UserName))
            {
                BaseController.Result result = new BaseController.Result
                {
                    success = true,
                    msg     = "取消成功"
                };
                return(base.Json(result));
            }
            BaseController.Result data = new BaseController.Result
            {
                success = false,
                msg     = "取消失败,该预约单已删除或者不属于当前用户!"
            };
            return(base.Json(data));
        }
Ejemplo n.º 3
0
        public JsonResult CloseOrder(long orderId)
        {
            UserMemberInfo umi     = CurrentUser;
            bool           isClose = OrderApplication.CloseOrder(orderId, umi.Id, umi.UserName);

            if (isClose)
            {
                return(Json(new Result()
                {
                    success = true, msg = "取消成功"
                }));
            }
            else
            {
                return(Json(new Result()
                {
                    success = false, msg = "取消失败,该订单已删除或者不属于当前用户!"
                }));
            }
        }