Exemple #1
0
 public static UserDTO ViewEntity2UserDto(this vw_USER_UsersLib entity)
 {
     return(new UserDTO
     {
         UserProfileId = entity.Id
         , UserId = entity.UserId
         , Email = entity.Email
         , FullName = entity.Entity2FullName()
         , FirstName = entity.FirstName
         , LastName = entity.LastName
         , Nickname = entity.Nickname
         , LastLogin = entity.LastLoginDate
         , IsConfirmed = entity.IsConfirmed
         , IsPayoutOptionsDefined = entity.PayoutTypeId != null
     });
 }
Exemple #2
0
 public static string Entity2FullName(this vw_USER_UsersLib entity)
 {
     return(CombineFullName(entity.FirstName, entity.LastName, entity.Nickname));
 }