public static Client DalToDto(ScaffoldedModels.Client pClient) { return(new Client { Adresse = pClient.Adresse, Compagnie = pClient.Compagnie, Id = pClient.Id, Mail = pClient.Mail, Nom = pClient.Nom, Projet = ProjetTranslator.DalToDto(pClient.Projet), Telephone = pClient.Telephone }); }
public static Collaborateurs DalToDto(ScaffoldedModels.Collaborateurs pCollaborateurs) { return(new Collaborateurs { Admin = pCollaborateurs.Admin, Id = pCollaborateurs.Id, Identifiant = pCollaborateurs.Identifiant, Mail = pCollaborateurs.Mail, Nom = pCollaborateurs.Nom, Notification = NotificationTranslator.DalToDto(pCollaborateurs.Notification), Prenom = pCollaborateurs.Prenom, Projet = ProjetTranslator.DalToDto(pCollaborateurs.Projet), Statut = pCollaborateurs.Statut, StatutNavigation = pCollaborateurs.StatutNavigation == null ? null : RolesTranslator.DalToDto(pCollaborateurs.StatutNavigation), Tache = TacheTranslator.DalToDto(pCollaborateurs.Tache) }); }