public IList <Programa> ObterProgramaTodos() { using (BMPrograma progBM = new BMPrograma()) { return(progBM.ObterTodos().OrderBy(x => x.Nome).ToList()); } }
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()); }
public IQueryable <Programa> ObterTodosProgramas() { return(bmPrograma.ObterTodos()); }