コード例 #1
0
 public HttpResponseMessage GetProductPrice(string productId, string IOCodeId)
 {
     try
     {
         CatProductPriceDT priceDT = new CatProductPriceDT();
         DataTable         dt      = priceDT.GetByCond("ProductID=" + productId + " AND IOCodeID =" + IOCodeId);
         return(Request.CreateResponse <string>(HttpStatusCode.OK, JsonConvert.SerializeObject(dt)));
     }
     catch (Exception e)
     {
         ExceptionHandler.Log(e);
         return(null);
     }
 }