// GET: ManageProduct/Delete public ActionResult Delete(int id) { var pD = CSDLQLBH.GetSingleProduct(id); if (pD != null) { CSDLQLBH.RemoveProduct(id); } Ulti.DeleteProductImgs(id, Server.MapPath("~")); return(RedirectToAction("Index")); }
// GET: ManageProduct/Delete public ActionResult Delete(int id) { var pD = CSDLQLBH.GetSingleProduct(id); if (pD != null) { CSDLQLBH.RemoveProduct(id); } Ulti.DeleteProductImgs(id, Server.MapPath("~")); return(RedirectToAction("Index")); }