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