public List <Oferta> GetOfertaByAreaId(int id) { List <Oferta> lst = new List <Oferta>(); SqlDataReader dr = DALOfertas.select_byArea(id); while (dr != null && dr.Read()) { lst.Add(cargarOferta(dr)); } return(lst); }
public List <Oferta> GetByClave(string clave) { List <Oferta> lst = new List <Oferta>(); SqlDataReader dr = DALOfertas.select_byClave(clave); while (dr.Read()) { lst.Add(cargarOferta(dr)); } return(lst); }