コード例 #1
0
 public HttpResponseMessage CustomerWisePSI(string product_id, string color_id, string from_date, string to_date)
 {
     try
     {
         var customerWisePSI = inventoryRepository.CustomerWisePSI(product_id, color_id, from_date, to_date);
         var formatter       = RequestFormat.JsonFormaterString();
         return(Request.CreateResponse(HttpStatusCode.OK, customerWisePSI, formatter));
     }
     catch (Exception)
     {
         var formatter = RequestFormat.JsonFormaterString();
         return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation {
             output = "warning", msg = "Sorry!Try Again...."
         }, formatter));
     }
 }