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)); }