diff --git a/GanjooRazor/Pages/Index.cshtml.cs b/GanjooRazor/Pages/Index.cshtml.cs
index c666654c..d7d2d55a 100644
--- a/GanjooRazor/Pages/Index.cshtml.cs
+++ b/GanjooRazor/Pages/Index.cshtml.cs
@@ -1261,5 +1261,26 @@ namespace GanjooRazor.Pages
return GanjoorPage != null && GanjoorPage.Poem != null && GanjoorPage.Poem.ClaimedByMultiplePoets ? "poem ribbon-parent" : "poem";
}
}
+
+ public async Task OnPostMarkAsTextOriginalAsync(int bookId, int categoryId)
+ {
+ using (HttpClient secureClient = new HttpClient())
+ {
+ if (await GanjoorSessionChecker.PrepareClient(secureClient, Request, Response))
+ {
+ HttpResponseMessage response = await secureClient.PutAsync(
+ $"{APIRoot.Url}/api/ganjoor/naskban/textoriginal/{bookId}/{categoryId}/true", null);
+ if (!response.IsSuccessStatusCode)
+ {
+ return new BadRequestObjectResult(JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync()));
+ }
+ return new OkObjectResult(true);
+ }
+ else
+ {
+ return new BadRequestObjectResult("لطفاً از گنجور خارج و مجددا به آن وارد شوید.");
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs
index 15aba260..49c41d69 100644
--- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs
+++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs
@@ -226,6 +226,7 @@ namespace RMuseum.Services.Implementation
{
var poems = await context.GanjoorPoems.AsNoTracking().Where(p => p.CatId == catId).ToListAsync();
poemCount += poems.Count;
+ progress++;
foreach (var poem in poems)
{
if (textOriginal)