public ActionResult AddCategory(AddPrepaidCardCategoryModel model, int id = 0)
        {
            if (ModelState.IsValid)
            {
                var r = YunClient.Instance.Execute(new AddPrepaidCardTypeRequest
                {
                    CardName = model.Name,
                    CardType = model.CardType,
                    Denomination = model.Money,
                    Description = model.Description
                }, Token);

                return Json(new {result = r.Result > 0, error = "操作失败,错误代码:"+r.Result});
            }

            return Json(new {result = false, error = "操作失败,提交的数据不完整"});
        }
        public ActionResult EditCategory(AddPrepaidCardCategoryModel model, int id)
        {
            if (ModelState.IsValid)
            {
                var r = YunClient.Instance.Execute(new UpdatePrepaidCardTypeRequest
                {
                    PrepaidCardTypeId = id,
                    CardName = model.Name,
                    CardType = model.CardType,
                    Description = model.Description
                }, Token);

                return Json(new { result = r.Result, error = r.ErrMsg });
            }

            return Json(new { result = false, error = "操作失败" });
        }