From 8dcb800d349770f866b234a6c9bcadc33688cb49 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Wed, 26 Jul 2023 17:10:39 +0330 Subject: [PATCH] #401 bug fix --- .../PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMuseum/Services/Implementation/PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs b/RMuseum/Services/Implementation/PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs index 9b94853b..4d643fd1 100644 --- a/RMuseum/Services/Implementation/PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs +++ b/RMuseum/Services/Implementation/PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs @@ -408,7 +408,7 @@ namespace RMuseum.Services.Implementation File.Delete(model.LocalImportingPDFFilePath); if (res.Result != null) { - var pdf = res.Result; + var pdf = await context.PDFBooks.Include(p => p.Tags).Where(p => p.Id == res.Result.Id).SingleAsync(); foreach (var tag in meta) { pdf.Tags.Add(tag);