コード例 #1
0
        public ActionResult DeleteConfirmed(long id)
        {
            var passenger = new Models.Passenger();
            if (passenger.Seleccionar(id))
            {
                passenger.Eliminar();
            }

            return RedirectToAction("Index", new { pagina = 1 });
        }
コード例 #2
0
 /// <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();
     }
 }