// Refactorizar este metodo private static List <string> fieldsContact(ContactModel contact) { string company = field(contact.company); string fullname = field(contact.fullname); string phone = field(contact.phone); string email = field(contact.email, "sin correo de referencia"); Load_Type serviceType = contact.serviceType; string origen = NO_APLICA, destino = NO_APLICA; if (serviceType.Equals(Load_Type.TRANSPORTE_NACIONAL)) { origen = contact.transportRoute.loadingSource; destino = contact.transportRoute.loadingDestination; } return(new List <string>() { company, fullname, phone, email, serviceType.ToString(), origen, destino }); }
public ContactModel(string company, string fullname, string phone, string email, Load_Type serviceType, TransporteRouteModel transportRoute) { this.company = company; this.fullname = fullname; this.phone = phone; this.email = email; this.serviceType = serviceType; this.transportRoute = transportRoute; }