private void ImportCustomer() { if (CustomerRecordSizeIsNotCorrect()) { throw new Exception(InvalidCustomerRecord); } _newCustomer = new Customer { FirstName = _record[1], LastName = _record[2], IdentificationType = _record[3], IdentificationNumber = _record[4] }; _system.AddCustomer(_newCustomer); }
private static void addCostumer() { costumerSystem.AddCustomer(_newCustomer); }