Exemplo n.º 1
0
        public List <ConstanteComboView> ListarDetalleConstante(string CodigoAgrupador)
        {
            List <ConstanteComboView> listaDetalle = null;

            try
            {
                listaDetalle = (from t in context.SP_S_Constante_PorCodigoAgrupador(CodigoAgrupador).ToList()
                                select new ConstanteComboView()
                {
                    IdConstante = t.IdConstante,
                    Constante = t.Constante,
                    IdPadre = t.IdPadre,
                }).ToList();
            }
            catch (Exception ex)  //Yoski Ex
            {
                listaDetalle = null;
                throw ex;
            }

            return(listaDetalle);
        }