private static IEnumerable <ConfigurationValue> ConvertEntryModifiedToValues(ConfigurationEntryModified message)
        {
            message.ArgumentNotNull(nameof(message));

            return(message.Values.Select(v => new ConfigurationValue
            {
                Id = Guid.NewGuid(),
                EntryId = message.EntryId,
                PropertyId = v.Key,
                Value = v.Value?.ToString()
            }));
        }
        public async Task Handle(ConfigurationEntryModified message)
        {
            message.ArgumentNotNull(nameof(message));

            await this.UpdateProjectAsync(message);

            IQueryable <ConfigurationValue> oldValues = this.dbContext.Values.Where(p => p.EntryId == message.EntryId);

            this.dbContext.Values.RemoveRange(oldValues);

            var newValues = this.mapper.Map <IEnumerable <ConfigurationValue> >(message);

            this.dbContext.Values.AddRange(newValues);

            await this.dbContext.SaveChangesAsync();
        }