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, }); }
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, }); }
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, }); }
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, }); }