/// <summary> /// /// </summary> /// <returns></returns> public List<Customer> GetCustomers() { using (var context=new InvoicePurchaseEntities()) { return context.Customers.ToList(); } }
public CustomerService() { _context = new InvoicePurchaseEntities(); }