public ActionResult DeleteConfirmed(int id) { List <ProductImage> lstProductImage = objProductImageBO.GetImages(id); foreach (ProductImage p in lstProductImage) { objProductImageBO.DeleteImage(p.PKImageId); } objProductBO.DeleteProduct(id); return(RedirectToAction("Index")); }
public ResponseResult DeleteProduct(int id) { var a = ProductBO.DeleteProduct(id); return(a); }