private GameInstanceUser Map(GameInstanceUserDto gameInstanceUserDto) { var target = new GameInstanceUser(); target.Role = gameInstanceUserDto.Role; target.UserId = gameInstanceUserDto.UserId; return(target); }
public GameInstanceUserDto Map(GameInstanceUser gameInstanceUser) { var target = new GameInstanceUserDto(); target.UserId = gameInstanceUser.UserId; target.Role = gameInstanceUser.Role; target.UserEmail = gameInstanceUser.User?.Email; return(target); }