public Customer(Customer customer) { CustomerDataAcces sqlComunicator = new CustomerDataAcces(customer); DataAcces.Instance.AddData(sqlComunicator); }
public Customer(string identy) { CustomerDataAcces sqlComunicator = new CustomerDataAcces(identy); this.ID = (Guid)DataAcces.Instance.GetData(sqlComunicator).Rows[0][0]; }