Exemple #1
0
        // GET: Cita/Create
        public ActionResult Create()
        {
            ViewBag.TipoServicioId = new SelectList(TipoServicioProcess.ListarTodos(), "Id", "Nombre");
            ViewBag.SalaId         = new SelectList(SalaProcess.ListarTodos(), "Id", "Nombre");
            ViewBag.MedicoId       = new SelectList(medicoprocess.ListarTodos(), "Id", "Apellido");
            ViewBag.PacienteId     = new SelectList(pacienteprocess.ListarTodos(), "Id", "Nombre");

            return(View());
        }
Exemple #2
0
        // GET: Sala
        public ActionResult Index()
        {
            var biz   = new SalaProcess();
            var lista = biz.ListarTodos();

            return(View(lista));
        }