public void Save(CustomerDataEntity p_customer) { m_CustomersDataSet.CustomersDataTable.AddCustomersDataTableRow( p_customer.Name, p_customer.CompanyName, p_customer.DateOfBirth); m_CustomersDataSet.WriteXml(m_fileName); }
private bool IsDuplicateOfExisting(CustomerDataEntity newCustomerDataEntity) { CustomerDataEntity duplicateCustomerDataEntity = m_customerDao.GetByName(newCustomerDataEntity.Name); return duplicateCustomerDataEntity != null; }
public List<CustomerDataEntity> GetAllCustomers() { List<CustomerDataEntity> customersList = new List<CustomerDataEntity>(); foreach (CustomersDataSet.CustomersDataTableRow row in m_CustomersDataSet.CustomersDataTable.Rows) { CustomerDataEntity entity = new CustomerDataEntity(row.Name, row.Company, row.DataOfBirth); customersList.Add(entity); } return customersList; }
public CustomerSavedEventArgs(CustomerDataEntity p_customer) { m_CustomerDataEntity = p_customer; }
public void Save(CustomerDataEntity p_customer) { m_dataMapper.Save(p_customer); m_allCustomers.Add(p_customer); }
public CustomerViewModel(CustomerDataEntity customerDataEntity) { m_customerDataEntity = customerDataEntity; }