// GET: Asientoes/Create
        public ActionResult Create()
        {
            var aviones = _avionRepository.GetAll();

            ViewBag.Id_Avion = new SelectList(aviones, "Id_avion", "Nombre");
            return(View());
        }
示例#2
0
        // GET: Vuelo/Create
        public ActionResult Create()
        {
            var aeropuerto = _aeropuertoRepository.GetAll();
            var aviones    = _avionRepository.GetAll();

            ViewBag.Aeropuerto_entrada = new SelectList(aeropuerto, "Id_aeropuerto", "Nombre");
            ViewBag.Aeropuerto_salida  = new SelectList(aeropuerto, "Id_aeropuerto", "Nombre");
            ViewBag.Id_avion           = new SelectList(aviones, "Id_avion", "Nombre");
            return(View());
        }
        // GET: Avions
        public ActionResult Index()
        {
            var aviones = _avionRepository.GetAll();

            return(View(aviones));
        }