diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml
index 37dd885e..eef82b0d 100644
--- a/RMuseum/RMuseum.xml
+++ b/RMuseum/RMuseum.xml
@@ -17849,6 +17849,9 @@
IGanjoorService implementation
+
+ IGanjoorService implementation
+
diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs
index 4bdadee0..d9b13baf 100644
--- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs
+++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs
@@ -19,7 +19,6 @@ using RSecurityBackend.Models.Generic.Db;
using RMuseum.Models.PDFLibrary;
using DNTPersianUtils.Core;
using System.Collections.Generic;
-using RMuseum.Migrations;
namespace RMuseum.Services.Implementation
{
@@ -622,25 +621,5 @@ namespace RMuseum.Services.Implementation
return new RServiceResult(0, exp.ToString());
}
}
-
- ///
- /// category paper sources
- ///
- ///
- ///
- public async Task> GetCategoryPaperSourcesAsync(int categoryId)
- {
- try
- {
- return new RServiceResult
- (
- await _context.GanjoorPaperSources.AsNoTracking().Where(p => p.GanjoorCatId == categoryId).OrderByDescending(c => c.IsTextOriginalSource).OrderBy(c => c.OrderIndicator).ThenBy(c => c.Id).ToArrayAsync()
- );
- }
- catch (Exception exp)
- {
- return new RServiceResult(null, exp.ToString());
- }
- }
}
}
\ No newline at end of file
diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PaperSources.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PaperSources.cs
new file mode 100644
index 00000000..b40d298e
--- /dev/null
+++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PaperSources.cs
@@ -0,0 +1,36 @@
+using Microsoft.EntityFrameworkCore;
+using RSecurityBackend.Models.Generic;
+using System;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using RMuseum.Models.GanjoorIntegration;
+
+namespace RMuseum.Services.Implementation
+{
+ ///
+ /// IGanjoorService implementation
+ ///
+ public partial class GanjoorService : IGanjoorService
+ {
+ ///
+ /// category paper sources
+ ///
+ ///
+ ///
+ public async Task> GetCategoryPaperSourcesAsync(int categoryId)
+ {
+ try
+ {
+ return new RServiceResult
+ (
+ await _context.GanjoorPaperSources.AsNoTracking().Where(p => p.GanjoorCatId == categoryId).OrderByDescending(c => c.IsTextOriginalSource).OrderBy(c => c.OrderIndicator).ThenBy(c => c.Id).ToArrayAsync()
+ );
+ }
+ catch (Exception exp)
+ {
+ return new RServiceResult(null, exp.ToString());
+ }
+ }
+ }
+}