Ejemplo n.º 1
0
 public ResponseAccountRejectOut AccountAcceptOut([FromBody] RequestAccountRejectOut request)
 {
     try
     {
         AccountSetBLL bll = new AccountSetBLL();
         return(bll.AccountRejectOut(request));
     }
     catch (Exception ex)
     {
         throw new HttpResponseException(
                   Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }
Ejemplo n.º 2
0
        public ResponseAccountRejectOut AccountRejectOut(RequestAccountRejectOut request)
        {
            ResponseAccountRejectOut res = new ResponseAccountRejectOut();

            using (cnn = GetConnection())
            {
                var ts = cnn.BeginTransaction();
                try
                {
                    string sql = @"update tks_fas_accountinfo set wb_status=3, isOutSource=0  where id=@Id and wb_status=2";
                    cnn.Execute(sql, new { Id = request.Data.Id }, ts);
                    ts.Commit();
                    res.IsSuccess = true;
                    res.Message   = "拒绝成功";
                    return(res);
                }
                catch (Exception ex)
                {
                    ts.Rollback();
                    return(this.DealException(res, ex) as ResponseAccountRejectOut);
                }
            }
        }