public IndexPromocaoNoticia retornaNoticiasPromocao(int idPromocao, int pagina, int quantidade) { var PromocoesRN = new ZAdmin_RN.Promocao.PromocaoNoticia(Configuracoes.ServidorElastic, Configuracoes.IndexElastic); var indexPromocaoNoticia = new IndexPromocaoNoticia(); indexPromocaoNoticia.noticias = PromocoesRN.retornaNoticiasPromocao(idPromocao, pagina, quantidade); indexPromocaoNoticia.totalNoticias = PromocoesRN.totalNoticias; return(indexPromocaoNoticia); }
public IndexPromocaoNoticia noticias(filtroPromocaoNoticia filtro) { var PromocoesRN = new ZAdmin_RN.Promocao.PromocaoNoticia(Configuracoes.ServidorElastic, Configuracoes.IndexElastic); var indexPromocaoNoticia = new IndexPromocaoNoticia(); indexPromocaoNoticia.noticias = PromocoesRN.RetornaNoticias(filtro); indexPromocaoNoticia.totalNoticias = PromocoesRN.totalNoticias; return(indexPromocaoNoticia); }