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