예제 #1
0
 public static UserDetailed DalToDetailedUserApi(this DalUser.User user)
 {
     return(new UserDetailed()
     {
         Id = user.Id,
         NationalNumber = user.NationalNumber,
         LastName = user.LastName,
         FirstName = user.FirstName,
         Birthdate = user.Birthdate,
         AdCity = user.AdCity,
         AdPostalCode = user.AdPostalCode,
         AdStreet = user.AdStreet,
         AdNumber = user.AdNumber,
         AdBox = user.AdBox,
         MobilePhone = user.MobilePhone,
         Login = user.Login,
         Gender = user.Gender,
         Photo = user.Photo,
         PersonalNote = user.PersonalNote,
         StartDate = user.StartDate,
         lastResetPwd = user.FirstLogin,
         Email = user.Email,
         ClassId = user.ClassId,
         StatusCode = user.StatusCode
     });
 }
예제 #2
0
 public static UserForEmails DalToForEmailsUserApi(this DalUser.User user)
 {
     return(new UserForEmails()
     {
         Id = user.Id,
         FullName = user.LastName + ' ' + user.FirstName,
         StatusCode = user.StatusCode,
         Gender = user.Gender,
         Photo = user.Photo,
     });
 }
예제 #3
0
 public static UserForEntities DalToForEntitiesApi(this DalUser.User user)
 {
     return(new UserForEntities()
     {
         Id = user.Id,
         LastName = user.LastName,
         FirstName = user.FirstName,
         NationalNumber = user.NationalNumber,
         ClassId = user.ClassId,
         StatusCode = user.StatusCode,
         Email = user.Email
     });
 }
예제 #4
0
 public static UserSimplified DalToSimplifiedUserApi(this DalUser.User user)
 {
     return(new UserSimplified()
     {
         Id = user.Id,
         LastName = user.LastName,
         FirstName = user.FirstName,
         Birthdate = user.Birthdate,
         Login = user.Login,
         Gender = user.Gender,
         lastResetPwd = user.FirstLogin,
         StatusCode = user.StatusCode,
         ClassId = user.ClassId,
     });
 }