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; } }
public ActionResult DeleteSaleProduct(string ID) { objdistributorsale.DeleteDistributorSaleProduct(ID); return(RedirectToAction("AddProductT")); }