public async Task <IActionResult> SaveAdjust(MemberPointAdjustDto dto)
        {
            await _service.AdjustAsync(dto.MemberId, dto.Type, dto.Points,
                                       EmMemberPointBusType.AdminAdjust, 0, dto.Remark, User.GetUserIdOrZero());

            return(JsonData(true));
        }
        public async Task <IActionResult> Adjust(long?id, EmMemberPointType?type)
        {
            var members = new List <MemberDto>();
            MemberPointAdjustDto dto = new MemberPointAdjustDto();

            if (id.HasValue)
            {
                var model = await _service.GetByIdAsync(id.Value);

                if (model == null)
                {
                    throw new KuDataNotFoundException("无法取得数据!");
                }
                dto.Type = model.Type;
                var member = await _memberService.GetByIdAsync(model.MemberId);

                if (member != null)
                {
                    members.Add(member);
                }
            }
            else
            {
                if (!type.HasValue)
                {
                    throw new KuArgNullException("参数出错", "type");
                }

                dto.Type = type.Value;
            }

            ViewBag.Members = members;
            return(View(dto));
        }