public ActionResult AcceptarRuta(CreateRouteModel model) { if (Request.Form["command"] == "accept") { DataHandler.AcceptRoute(model.id.Value); } else if (Request.Form["command"] == "delete") { DataHandler.DeleteRoute(model.id.Value); } return(RedirectToAction("AcceptarRuta")); }