public ActionResult Delete(int id, FormCollection collection) { try { // TODO: Add delete logic here _workHistory.DeleteProduct(id); return(RedirectToAction("Index", new { productCategory = "all" })); } catch { return(View()); } }
public ActionResult Delete(int id, FormCollection collection) { try { // TODO: Add delete logic here _workHistory.DeleteProduct(id); return(RedirectToAction("Index", new { productCategory = "all" })); } catch { return(View()); } }