コード例 #1
0
        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());
            }
        }
コード例 #2
0
 /// <inheritdoc/>
 public Task <BoardStatus> GetBoardStatusAsync(int playerBoardId) => validatedService.GetBoardStatusAsync(playerBoardId);