public List<Cliente> Get()
 {
     var e = new AdventureWorksLT2008Entities();
     return e.Clientes.Take(10).ToList();
 }
Beispiel #2
0
        public Cliente Get(int id)
        {
            var e = new AdventureWorksLT2008Entities();

            return(e.Clientes.FirstOrDefault(x => x.CustomerID == id));
        }
 public Cliente Get(int id)
 {
     var e = new AdventureWorksLT2008Entities();
     return e.Clientes.FirstOrDefault(x => x.CustomerID == id);
 }
Beispiel #4
0
        public List <Cliente> Get()
        {
            var e = new AdventureWorksLT2008Entities();

            return(e.Clientes.Take(10).ToList());
        }