Example #1
0
 public Customer GetCustomer(string customerID)
 {
     NorthwindEntities context = new NorthwindEntities();
     Customer customer = context.Customers.FirstOrDefault(
         c => c.CustomerID == customerID);
     return customer;
 }
Example #2
0
 public List<Customer> GetAllCustomers()
 {
     NorthwindEntities context = new NorthwindEntities();
     return context.Customers.ToList();
 }