public void DeleteCustomerAccount(Entities.CustomerAccount customerAccount) { if (customerAccount == null) { throw new ArgumentNullException(nameof(customerAccount)); } _context.CustomerAccounts.Remove(customerAccount); }
public void CreateCustomerAccount(Entities.CustomerAccount customerAccount) { if (customerAccount == null) { throw new ArgumentNullException(nameof(Contact)); } _context.CustomerAccounts.Add(customerAccount); }