Exemplo n.º 1
0
        public List<Customer> GetCustomersByRegion(string region)
        {

            AW2012DataContext aw = new AW2012DataContext();

            return aw.Customers.Where(c => c.CountryRegionName == region).ToList();
        }
Exemplo n.º 2
0
        public List<Customer> GetCustomers()
        {

            AW2012DataContext aw = new AW2012DataContext();

            return aw.Customers.ToList();
        }
Exemplo n.º 3
0
        public List <Customer> GetCustomersByRegion(string region)
        {
            AW2012DataContext aw = new AW2012DataContext();

            return(aw.Customers.Where(c => c.CountryRegionName == region).ToList());
        }
Exemplo n.º 4
0
        public List <Customer> GetCustomers()
        {
            AW2012DataContext aw = new AW2012DataContext();

            return(aw.Customers.ToList());
        }
Exemplo n.º 5
0
        public Customer GetCustomer(int customerID)
        {
            AW2012DataContext aw = new AW2012DataContext();

            return(aw.Customers.FirstOrDefault(c => c.BusinessEntityID == customerID));
        }
Exemplo n.º 6
0
        public Customer GetCustomer(int customerID)
        {
            AW2012DataContext aw = new AW2012DataContext();

            return aw.Customers.FirstOrDefault(c => c.BusinessEntityID == customerID);
        }