public IActionResult Index(string level) { var game = TestData.AGame(new VectorDto(1, 1), int.Parse(level.Split()[1])); gamesRepo.AddGame(game); var gameDto = mapper.Map <GameDto>(game); return(Ok(gameDto)); }