コード例 #1
0
 public HttpResponseMessage DeleteSalePaper(string id)
 {
     try
     {
         objDistributorSale.DeleteDistributorSaleProduct(id);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex));
         // return 0;
     }
 }
コード例 #2
0
 public ActionResult DeleteSaleProduct(string ID)
 {
     objdistributorsale.DeleteDistributorSaleProduct(ID);
     return(RedirectToAction("AddProductT"));
 }