public ActionResult Edit(Product updatedProduct, FormCollection collection) { try { // TODO: Add update logic here _workHistory.EditProduct(updatedProduct); return(RedirectToAction("Index", new { productCategory = "all" })); } catch { return(View()); } }