Exemplo n.º 1
0
        public async Task <IActionResult> Attack(Guid boardId, AttackRequest attackRequest)
        {
            var boardTask  = _boardService.GetBoard(boardId);
            var shipId     = _shipService.GetShipByBoardId(boardId);
            var resultTask = _attackService.AttackShip(boardId, shipId, attackRequest);
            var response   = await resultTask;

            return(Ok(response.ToString()));
        }