public static ProfilFonctionnaliteDto FromModel(ProfilFonctionnalite model) { return(new ProfilFonctionnaliteDto() { Id = model.Id, IdProfil = model.IdProfil, IdFonctionnalite = model.IdFonctionnalite, DateCreation = model.DateCreation, StatusCode = model.StatusCode, IdFonctionnaliteNavigation = FonctionnaliteDto.FromModel(model.IdFonctionnaliteNavigation), IdProfilNavigation = ProfilDto.FromModel(model.IdProfilNavigation), }); }
public static AgentDto FromModel(Agent model) { return(new AgentDto() { Id = model.Id, IdProfil = model.IdProfil, Login = model.Login, MotDePasse = model.MotDePasse, DateCreation = model.DateCreation, Nom = model.Nom, Prenoms = model.Prenoms, Contact = model.Contact, Email = model.Email, IsUser = model.IsUser, IdPhoto = model.IdPhoto, StatusCode = model.StatusCode, IdPhotoNavigation = PhotoDto.FromModel(model.IdPhotoNavigation), IdProfilNavigation = ProfilDto.FromModel(model.IdProfilNavigation), HistoriqueJauge = model.HistoriqueJauge, Transfert = model.Transfert, }); }