Example #1
0
        private JsonResult SaveOrder(order order)
        {
            var res = OrderService.AddEntity(order);

            if (res.id > 0)
            {
                return(Json(SysEnum.成功, new { res.order_number, order_id = Common.EncryptHelper.Encrypt(res.id.ToString()) }, "添加成功", 1));
            }
            return(Json(SysEnum.失败, "添加失败"));
        }