示例#1
0
 public static TbhabilitationDto FromModel(Tbhabilitation model)
 {
     return(new TbhabilitationDto()
     {
         MenuId = model.MenuId,
         ProfilId = model.ProfilId,
         Droit = model.Droit,
         IdUser = model.IdUser,
         DateCreation = model.DateCreation,
         ModifieLe = model.ModifieLe,
         ModifiePar = model.ModifiePar,
         StateCode = model.StateCode,
         StatusCode = model.StatusCode,
         Menu = TbmenuDto.FromModel(model.Menu),
         Profil = TbprofilDto.FromModel(model.Profil),
     });
 }
示例#2
0
 public static TbuserDto FromModel(Tbuser model)
 {
     return(new TbuserDto()
     {
         IdUser = model.IdUser,
         CodUser = model.CodUser,
         LoginUser = model.LoginUser,
         NomPrenUser = model.NomPrenUser,
         NumTel = model.NumTel,
         SexUser = model.SexUser,
         AdrUser = model.AdrUser,
         Password = model.Password,
         DatFonc = model.DatFonc,
         IdTypeUser = model.IdTypeUser,
         ProfilId = model.ProfilId,
         AgentId = model.AgentId,
         DateDebutValidite = model.DateDebutValidite,
         DateFinValidite = model.DateFinValidite,
         DateDerniereModificationPassword = model.DateDerniereModificationPassword,
         InitUserPassword = model.InitUserPassword,
         NbreEchecsOuvertureSession = model.NbreEchecsOuvertureSession,
         DateDerniereConnexion = model.DateDerniereConnexion,
         DerniereConnexionReussie = model.DerniereConnexionReussie,
         DateDernierVerrouillage = model.DateDernierVerrouillage,
         Email = model.Email,
         StatutSession = model.StatutSession,
         Hostname = model.Hostname,
         ModifieLe = model.ModifieLe,
         ModifiePar = model.ModifiePar,
         StateCode = model.StateCode,
         StatusCode = model.StatusCode,
         DateCreation = model.DateCreation,
         Agent = TbagentDto.FromModel(model.Agent),
         IdTypeUserNavigation = TbtypeUserDto.FromModel(model.IdTypeUserNavigation),
         Profil = TbprofilDto.FromModel(model.Profil),
         TbspecialiteUser = model.TbspecialiteUser,
         TbuserDossier = model.TbuserDossier,
     });
 }