public PresentationContact contactToPresentationContact(Contact contact) { PresentationContact presentationContact = new PresentationContact(); presentationContact.setIdContact(contact.getIdContact()); presentationContact.setFirstName(contact.getFirstName()); presentationContact.setLastName(contact.getLastName()); presentationContact.setEmail(contact.getEmail()); presentationContact.setPhone(contact.getPhone()); return presentationContact; }
public Contact presentationContactToContact(PresentationContact presentationContact) { Contact contact = new Contact(); contact.setIdContact(presentationContact.getIdContact()); contact.setFirstName(presentationContact.getFirstName()); contact.setLastName(presentationContact.getLastName()); contact.setEmail(presentationContact.getEmail()); contact.setPhone(presentationContact.getPhone()); return contact; }