Пример #1
0
        public IActionResult MovePiece(PieceToMoveDto picToMove)
        {
            var resp    = _moveRepo.MovePiece(_gameRepo.GetGame(), picToMove.piece.id, picToMove.X, picToMove.Y);
            var gameDto = _mapper.Map <GameDto>(resp);

            return(Ok(gameDto));
        }