Exemple #1
0
        public async Task <IHttpActionResult> ResetPlayerBoardAsync(int playerBoardId)
        {
            try
            {
                var board = await processService.ResetPlayerBoardAsync(playerBoardId);

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