Exemple #1
0
        public int ObtenerDuracion(int tipo)
        {
            int duracion      = 0;
            var tipoOperacion = TGUQTipoOperacion.Obtener(tipo);

            if (tipoOperacion != null && tipoOperacion.duracion.HasValue)
            {
                duracion = tipoOperacion.duracion.Value;
            }
            return(duracion);
        }
Exemple #2
0
        public ActionResult Create()
        {
            var tipoOperacionList = TGUQTipoOperacion.ListarTodos();

            ViewBag.TipoOperacionList = tipoOperacionList;

            var pacienteList = TGDAPaciente.ListarTodos();

            ViewBag.PacienteList = pacienteList;

            return(View());
        }