public void Add(Transaction customer) { using (var context = new RepositoryContext()) { context.CustomersCollection.Attach(customer.Customer); context.TransactionCollection.Add(customer); context.SaveChanges(); } }
public void UpdateCustomer(Transaction customer) { }