Profile import - Fixed and streamlined functionality

This commit is contained in:
SpoinkyNL committed 2020-09-25 21:32:53 +02:00
1 parent a5455c26d6
commit 8294cc306a
4 files changed
+24 -5

No files matched your search

@@ -236,7 +236,8 @@ namespace Artemis.Core.Services
var profileEntity = JsonConvert.DeserializeObject<ProfileEntity>(json, ExportSettings);
// Assign a new GUID to make sure it is unique in case of a previous import of the same content
profileEntity.Id = Guid.NewGuid();
profileEntity.UpdateGuid(Guid.NewGuid());
profileEntity.Name = $"{profileEntity.Name} - Imported";
_profileRepository.Add(profileEntity);
return new ProfileDescriptor(profileModule, profileEntity);