public List <Opcion> BuscarOpcion(int?plataformaId = null, int?opcionId = null, int?opcionPadreId = null, string nombre = null, string enlace = null, int?orden = null) { OpcionDa opcionDa = new OpcionDa(); List <Opcion> respuesta = null; try { cn.Open(); respuesta = opcionDa.BuscarOpcion(plataformaId, opcionId, opcionPadreId, nombre, enlace, orden, cn); cn.Close(); } catch (Exception ex) { respuesta = null; } finally { if (cn.State == ConnectionState.Open) { cn.Close(); } } return(respuesta); }