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