Example #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,
     });
 }
Example #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,
     });
 }
Example #3
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,
     });
 }
Example #4
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,
     });
 }