public async Task <IHttpActionResult> GetBoardStatusAsync(int playerBoardId) { try { var status = await processService.GetBoardStatusAsync(playerBoardId); return(Ok(status)); } catch (BoardNotFoundException ex) { logger.Error(ex, $"Board with {playerBoardId} can not be found."); return(NotFound()); } }
/// <inheritdoc/> public Task <BoardStatus> GetBoardStatusAsync(int playerBoardId) => validatedService.GetBoardStatusAsync(playerBoardId);