Exemplo n.º 1
0
        public ResponseBasicDataGet WX_BasicDataGet(RequestInvoiceGet request)
        {
            ResponseBasicDataGet response = new ResponseBasicDataGet();

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

                    response.IsSuccess = true;
                    response.Message   = "加载完毕";
                    response.Data      = data;

                    return(response);
                }
                catch (Exception ex)
                {
                    return(this.DealException(response, ex) as ResponseBasicDataGet);
                }
            }
        }
Exemplo n.º 2
0
 public ResponseInvoiceGet InvoiceGet([FromBody] RequestInvoiceGet request)
 {
     try
     {
         InvoiceBLL bll = new InvoiceBLL();
         return(bll.InvoiceGet(request));
     }
     catch (Exception ex)
     {
         throw new HttpResponseException(
                   Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }