예제 #1
0
 /// <summary>
 /// 保存
 /// </summary>
 /// <param name="entity"></param>
 /// <param name="keyValue"></param>
 public bool SubmitForm(tUserActiveWalletTransRecordEntity entity, int keyValue)
 {
     if (keyValue > 0)
     {
         return(this.BaseRepository().Update(entity) > 0);
     }
     else
     {
         return(this.BaseRepository().Insert(entity) > 0);
     }
 }
예제 #2
0
        //激活币钱包互转
        public bool Trans(tUserActiveWalletTransRecordEntity entity, out string ret)
        {
            ret = this.BaseRepository().ExecuteByProc <string>("proc_ActiveWalletTrans", new
            {
                @ret      = "",
                @fromMbId = entity.fromMbId,
                @toMbId   = entity.toMbId,
                @amount   = entity.transAmount,
                @ip       = entity.ip,
                @client   = entity.client
            });

            return(ret.IsEmpty());
        }
예제 #3
0
 //激活币钱包互转
 public bool Trans(tUserActiveWalletTransRecordEntity entity, out string ret)
 {
     ret = "";
     return(dal.Trans(entity, out ret));
 }
예제 #4
0
 /// <summary>
 /// 保存
 /// </summary>
 /// <param name="entity"></param>
 /// <param name="keyValue"></param>
 public bool SubmitForm(tUserActiveWalletTransRecordEntity entity, int keyValue)
 {
     return(dal.SubmitForm(entity, keyValue));
 }