Пример #1
0
 public HttpResponseMessage GetProductPrice(string productId, string storeId)
 {
     try
     {
         CatProductStoreDT storeDT = new CatProductStoreDT();
         DataTable         dt      = storeDT.GetByCond("ProductID=" + productId + " AND StoreID =" + storeId);
         return(Request.CreateResponse <string>(HttpStatusCode.OK, JsonConvert.SerializeObject(dt)));
     }
     catch (Exception e)
     {
         ExceptionHandler.Log(e);
         return(null);
     }
 }