Beispiel #1
0
        public Task AddAsync(IHistoryOperation historyOperation)
        {
            if (historyOperation == null)
            {
                throw new ArgumentNullException(nameof(historyOperation));
            }

            return(_historyOperationRepository.InsertOrReplaceAsync(historyOperation));
        }
        private async Task AddNewAsync(OldHistoryOperationEntity entity)
        {
            if (entity.CreatedOn == DateTime.MinValue)
            {
                return;
            }

            await _repository.InsertOrReplaceAsync(entity);

            if (entity.Removed)
            {
                await _repository.SetRemovedAsync(entity.Id);
            }
        }