Beispiel #1
0
        public async Task <bool> CreateTurnAsync(Turn turn)
        {
            try
            {
                await _turnRepository.CreateTurn(turn);

                _ = Task.Run(() =>
                {
                    _logger.Debug("Turno agregado correctamente");
                });
                return(true);
            }
            catch (Exception ex)
            {
                _logger.Error(ex.Message, ex);
                return(false);
            }
        }