Esempio n. 1
0
 public ResponsePZZGet PZZGet([FromBody] RequestPZZGet request)
 {
     try
     {
         PZZBLL bll = new PZZBLL();
         return(bll.PZZGet(request));
     }
     catch (Exception ex)
     {
         throw new HttpResponseException(
                   Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }
Esempio n. 2
0
        public ResponsePZZGet PZZGet(RequestPZZGet request)
        {
            ResponsePZZGet response = new ResponsePZZGet();

            using (cnn = GetConnection())
            {
                try
                {
                    var data = cnn.QuerySingle <TKS_FAS_CertificateWord>("select * from TKS_FAS_CertificateWord where id=@Id", new
                    {
                        Id = request.Data.Id
                    });

                    response.IsSuccess = true;
                    response.Message   = "加载完毕";
                    response.Data      = data;
                    return(response);
                }
                catch (Exception ex)
                {
                    return(this.DealException(response, ex) as ResponsePZZGet);
                }
            }
        }