예제 #1
0
        private IQueryable <dynamic> Find(int?Id, string Text)
        {
            var cargoDAO = new CargoDAO();
            var list     = cargoDAO.SelectCargo(Id, Text);
            var select   = list.Select(u => new
            {
                Id   = u.Id,
                Text = u.Text,

                dtCadastro     = u.dtCadastro,
                dtUltAlteracao = u.dtUltAlteracao
            }).OrderBy(u => u.Text).ToList();

            return(select.AsQueryable());
        }