public IActionResult Knight(string coordX, int coordY) { var knight = new Knight() { ActualPos = new Moves() { coordx = coordX, coordy = coordY } }; knight.PossibleMoves = moveService.KnightPossibleMoves(knight); return(Json(knight)); }