private void TreatmentAddressFields(Address address) { // Remoção de espaço vazio address.PublicPlace = UseFul.StringRemoveSpace(address.PublicPlace, true); address.Neighborhood = UseFul.StringRemoveSpace(address.Neighborhood, true); address.City = UseFul.StringRemoveSpace(address.City, true); address.Number = UseFul.StringRemoveSpace(address.Number, false); address.ZipCode = UseFul.StringRemoveSpace(address.ZipCode, false); }
private void TreatmentClientFields(Client client) { // Remoção de espaço vazio client.Name = UseFul.StringRemoveSpace(client.Name, true); client.LastName = UseFul.StringRemoveSpace(client.LastName, true); client.Email = UseFul.StringRemoveSpace(client.Email, false); client.Cpf = UseFul.StringRemoveSpace(client.Cpf, false); client.DDD = UseFul.StringRemoveSpace(client.DDD, false); client.Telephone = UseFul.StringRemoveSpace(client.Telephone, false); }