コード例 #1
0
 public IList <Programa> ObterProgramaTodos()
 {
     using (BMPrograma progBM = new BMPrograma())
     {
         return(progBM.ObterTodos().OrderBy(x => x.Nome).ToList());
     }
 }
コード例 #2
0
        public List <DTOPrograma> ListarProgramas()
        {
            programaBM = new BMPrograma();

            IList <DTOPrograma> lstResult = new List <DTOPrograma>();

            foreach (Programa pr in programaBM.ObterTodos().ToList())
            {
                DTOPrograma prdto = new DTOPrograma();
                CommonHelper.SincronizarDominioParaDTO(pr, prdto);
                lstResult.Add(prdto);
            }

            return(lstResult.ToList());
        }
コード例 #3
0
 public IQueryable <Programa> ObterTodosProgramas()
 {
     return(bmPrograma.ObterTodos());
 }