private void AddNewChildEntities(PetShopDBContext dbcontext) { if (_currentCustomer.Messages != null && _currentCustomer.Messages.Count > 0) { dbcontext.AddNewItems <Message>(_currentCustomer.Messages, m => m.ID == 0); //this.AddNewMessages(dbContext); } }