コード例 #1
0
        public List <Estados> ListaEstados()
        {
            List <Estados> lstEstados = null;

            try
            {
                lstEstados = (from e in context.SP_S_Estado().ToList()
                              where hardCodeEstados.Contains(e.IdRegistro)
                              select new Estados()
                {
                    IdEstado = e.IdRegistro,
                    Detalle = e.Detalle
                }).ToList();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(lstEstados);
        }