/// <summary> /// Método responsável por retornar uma lista dos objetos ativos de BoletoAtividade /// </summary> /// <returns>Lista de Boleto Atividade ativos</returns> private List <BoletoAtividade> RetornaListaAtivosAtividade() { IBoletoAtividadeProcesso boletoAtividadeControlador = BoletoAtividadeProcesso.Instance; List <BoletoAtividade> boletoAtividadeList = new List <BoletoAtividade>(); List <BoletoAtividade> boletoAtividadeList2 = new List <BoletoAtividade>(); boletoAtividadeList = boletoAtividadeControlador.Consultar(); IEnumerable <BoletoAtividade> query = from b in boletoAtividadeList where b.Status == 1 select b; foreach (BoletoAtividade boleto in query) { boletoAtividadeList2.Add(boleto); } return(boletoAtividadeList2); }