public static UserAnonimousDTOA Convert(UserEN en, NHibernate.ISession session = null) { UserAnonimousDTOA dto = null; UserAnonimousRESTCAD userAnonimousRESTCAD = null; UserCEN userCEN = null; UserCP userCP = null; if (en != null) { dto = new UserAnonimousDTOA(); userAnonimousRESTCAD = new UserAnonimousRESTCAD(session); userCEN = new UserCEN(userAnonimousRESTCAD); userCP = new UserCP(session); // // Attributes dto.Id = en.Id; // // TravesalLink // // Service } return(dto); }
public static UserDTOA Convert(UserEN en, NHibernate.ISession session = null) { UserDTOA dto = null; UserRESTCAD userRESTCAD = null; UserCEN userCEN = null; UserCP userCP = null; if (en != null) { dto = new UserDTOA(); userRESTCAD = new UserRESTCAD(session); userCEN = new UserCEN(userRESTCAD); userCP = new UserCP(session); // // Attributes dto.Id = en.Id; dto.BirthDate = en.BirthDate; dto.Surnames = en.Surnames; dto.Address = en.Address; dto.Phone = en.Phone; dto.Photo = en.Photo; dto.IsActive = en.IsActive; dto.Type = en.Type; dto.IsDiseased = en.IsDiseased; dto.Email = en.Email; // // TravesalLink // // Service } return(dto); }
public static UserDTOA Convert(UserEN en, NHibernate.ISession session = null) { UserDTOA dto = null; UserRESTCAD userRESTCAD = null; UserCEN userCEN = null; UserCP userCP = null; if (en != null) { dto = new UserDTOA(); userRESTCAD = new UserRESTCAD(session); userCEN = new UserCEN(userRESTCAD); userCP = new UserCP(session); // // Attributes dto.Id = en.Id; dto.Name = en.Name; dto.Surnames = en.Surnames; dto.IsActive = en.IsActive; // // TravesalLink // // Service } return(dto); }