public ActionResult Delete(int id) { try { RepoDapper Repo = new RepoDapper(); Repo.BorrarProducto(id); return(RedirectToAction("Index")); } catch { return(View()); } }