Esempio n. 1
0
        public async Task <int> AddOrUpdate(List <Event> events)
        {
            try
            {
                var entities = _transformHelper.Transform(events);

                return(await _repository.AddOrUpdateAsync(entities));
            }
            catch (Exception ex)
            {
                Logger.Error($"An error occured attempting to process collection of {nameof(Event)}");
                Logger.Error($"Class: {nameof(EventProcessor)}, Method: {nameof(AddOrUpdate)}");
                Logger.Error(ex);
                throw;
            }
        }