public List<Customer> GetCustomersByRegion(string region) { AW2012DataContext aw = new AW2012DataContext(); return aw.Customers.Where(c => c.CountryRegionName == region).ToList(); }
public List<Customer> GetCustomers() { AW2012DataContext aw = new AW2012DataContext(); return aw.Customers.ToList(); }
public List <Customer> GetCustomersByRegion(string region) { AW2012DataContext aw = new AW2012DataContext(); return(aw.Customers.Where(c => c.CountryRegionName == region).ToList()); }
public List <Customer> GetCustomers() { AW2012DataContext aw = new AW2012DataContext(); return(aw.Customers.ToList()); }
public Customer GetCustomer(int customerID) { AW2012DataContext aw = new AW2012DataContext(); return(aw.Customers.FirstOrDefault(c => c.BusinessEntityID == customerID)); }
public Customer GetCustomer(int customerID) { AW2012DataContext aw = new AW2012DataContext(); return aw.Customers.FirstOrDefault(c => c.BusinessEntityID == customerID); }