Beispiel #1
0
        public HttpResponseMessage GetBrokerWithdrawById(int id)
        {
            if (id == 0)
            {
                return(PageHelper.toJson(PageHelper.ReturnValue(false, "数据错误")));
            }
            var model    = _brokerwithdrawService.GetBrokerWithdrawById(id);
            var NewModel = new ReturnModel
            {
                ID          = model.Id.ToString(),
                Withdrawnum = model.WithdrawTotalNum,
                BankType    = model.BankCard.Type,
                BankNum     = model.BankCard.Num,
                BrokerName  = model.Broker.Brokername,
            };

            return(PageHelper.toJson(NewModel));
        }
 public HttpResponseMessage GetBrokerWithdrawById(int id)
 {
     if (id == 0)
     {
         return PageHelper.toJson(PageHelper.ReturnValue(false, "数据错误"));
     }
     var model = _brokerwithdrawService.GetBrokerWithdrawById(id);
     var NewModel = new ReturnModel
     {
         ID = model.Id.ToString(),
         Withdrawnum = model.WithdrawTotalNum,
         BankType = model.BankCard.Type,
         BankNum = model.BankCard.Num,
         BrokerName = model.Broker.Brokername,
     };
     return PageHelper.toJson(NewModel);
 }