public ActionResult DeleteConfirmed(long id) { var passenger = new Models.Passenger(); if (passenger.Seleccionar(id)) { passenger.Eliminar(); } return RedirectToAction("Index", new { pagina = 1 }); }
/// <summary> /// GET /Passenger/Details/5 /// </summary> public ActionResult Details(long id) { var passenger = new Models.Passenger(); if (passenger.Seleccionar(id)) { return View(passenger); } else { return HttpNotFound(); } }