Ejemplo n.º 1
0
        public async Task <IHttpActionResult> GetPlayerBoardAsync(int playerBoardId)
        {
            try
            {
                var board = await processService.GetPlayerBoardAsync(playerBoardId);

                return(Ok(board));
            }
            catch (BoardNotFoundException ex)
            {
                logger.Error(ex);
                return(NotFound());
            }
        }
 /// <inheritdoc/>
 public Task <PlayerBoardViewModel> GetPlayerBoardAsync(int playerBoardId)
 {
     return(validatedService.GetPlayerBoardAsync(playerBoardId));
 }