Exemple #1
0
 public static UserData To(UserDataDto dto)
 {
     return(new UserData
     {
         Id = dto.Id,
         Address1 = dto.Address1,
         Address2 = dto.Address2,
         Image = dto.Image,
         User = dto.User != null?UserDtoMapper.To(dto.User) : null,
     });
 }
Exemple #2
0
 public static UserParam To(UserParamDto dto)
 {
     return(new UserParam
     {
         Id = dto.Id,
         UserId = dto.UserId,
         Name = dto.Name,
         Value = dto.Value,
         User = dto.User != null?UserDtoMapper.To(dto.User) : null,
     });
 }