示例#1
0
 public static Projet DalToDto(ScaffoldedModels.Projet pProjet)
 {
     return(new Projet
     {
         Client = pProjet.Client,
         //ClientNavigation = ClientTranslator.DalToDto(pProjet.ClientNavigation),
         Debut = pProjet.Debut,
         Echeance = pProjet.Echeance,
         Id = pProjet.Id,
         Nom = pProjet.Nom,
         Responsable = pProjet.Responsable,
         //ResponsableNavigation = CollaborateursTranslator.DalToDto(pProjet.ResponsableNavigation),
         Tache = TacheTranslator.DalToDto(pProjet.Tache)
     });
 }
示例#2
0
 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)
     });
 }