Exemplo n.º 1
0
        public List<Categoria> dll_CategoriaList()
        {
            var context = new SIEPERU2Entities();

            var list = context.dll_CategoriaList().ToList().
                Select(obj => new Categoria
                {
                    ID_Categoria = obj.ID_Categoria,
                    Nombre= obj.Nombre,

                }).ToList<Categoria>();

            return list;
        }