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); }
public ActionResult Create() { var tipoOperacionList = TGUQTipoOperacion.ListarTodos(); ViewBag.TipoOperacionList = tipoOperacionList; var pacienteList = TGDAPaciente.ListarTodos(); ViewBag.PacienteList = pacienteList; return(View()); }