Esempio n. 1
0
        public async Task <IActionResult> AddShip(Guid boardId, Guid shipId, AddShipRequest addShipRequest)
        {
            var boardTask = _boardService.GetBoard(boardId);
            var shipTask  = _shipService.GetShip(shipId);
            var board     = await boardTask;
            var ship      = await shipTask;
            await _shipService.AddShipOnBoard(boardId, ship, addShipRequest);

            return(NoContent());
        }