// GET api/Customers/5 public Customer Get(int id) { CustomerContext dbContext = new CustomerContext(); return(dbContext.Customers.Find(id)); }
// GET api/Customers public IEnumerable <Customer> Get() { CustomerContext dbContext = new CustomerContext(); return(dbContext.Customers.ToList()); }