public List<modoPago> getModoPagos() { SqlParameter[] param = new SqlParameter[1]; modoPago item = new modoPago(); param[0] = new SqlParameter("@idioma", EbuySession.Idioma); List<modoPago> lista = new List<modoPago>(); datosSQL.ConGenerico = false; datosSQL.Parametros = param; datosSQL.Stored = "FEBUY_modoPagos"; lector = ebSQL.ExecuteSPReader(datosSQL); while (lector.Read()) { lista.Add(item.castDR(lector)); } lector.Close(); //EbuySqlFact.ExecuteSP(out lista, "FEBUY_tiposPago", param, false); return lista; }