public ActionResult DeleteConfirmed(int id) { try { productData.Delete(id); } catch (Exception ex) { log.Error("Could't delete a product from the Database", ex); return(View("ErrorRetriveData")); } return(RedirectToAction("Index")); }
// DELETE: api/Tables/5 public void Delete(int id) { tableData.Delete(id); }
// DELETE: api/Products/5 public void Delete(int id) { productData.Delete(id); }