Beispiel #1
0
        public async Task <IHttpActionResult> End(long gameId)
        {
            try
            {
                EndRoundView view = await _roundService.End(gameId);

                return(Ok(view));
            }
            catch (Exception exception)
            {
                string message = exception.ToString();
                _logger.Error(message);
                return(BadRequest(GameMessage.GameProcessingError));
            }
        }