public ActionResult Delete(int id, Product product) { try { // TODO: Add delete logic here client.DeleteProduct(id); return(RedirectToAction("Index")); } catch { return(View(client.GetProduct(id))); } }