|
@@ -119,6 +119,7 @@ namespace GxPress.Repository.Implement.Media
|
|
|
foreach (var item in result.MediaLibraryResults)
|
|
|
{
|
|
|
var mediaLibrary = _mapper.Map<Entity.tede2.Media.MediaLibrary>(item);
|
|
|
+ mediaLibrary.MediaId = id;
|
|
|
await mediaLibraryRepository.InsertAsync(mediaLibrary);
|
|
|
}
|
|
|
}
|
|
@@ -126,6 +127,7 @@ namespace GxPress.Repository.Implement.Media
|
|
|
foreach (var item in result.MediaLableResults)
|
|
|
{
|
|
|
var mediaLable = _mapper.Map<Entity.tede2.Media.MediaLable>(item);
|
|
|
+ mediaLable.MediaId = id;
|
|
|
await mediaLableRepository.InsertAsync(mediaLable);
|
|
|
}
|
|
|
if (result.Id == 0 && result.TeacherId == 0 && !string.IsNullOrEmpty(result.Author))
|