Ejemplo n.º 1
0
        public GameInstance Map(GameInstanceDto source)
        {
            var target = new GameInstance();

            target.Id     = source.Id;
            target.GameId = source.GameId;
            target.State  = Map(source.State);
            target.Users  = Map(source.Users);
            return(target);
        }
Ejemplo n.º 2
0
        public GameInstanceDto Map(GameInstance source)
        {
            var target = new GameInstanceDto();

            target.Id = source.Id;
            target.GameDisplayName = source.Game.DisplayName;
            target.DateCreated     = source.DateCreated;
            target.GameId          = source.GameId;
            target.State           = Map(source.State);
            target.Users           = Map(source.Users);
            return(target);
        }