diff --git a/GanjooRazor/Areas/Admin/Pages/ModifyPage.cshtml b/GanjooRazor/Areas/Admin/Pages/ModifyPage.cshtml
index 188d061a..62769aaf 100644
--- a/GanjooRazor/Areas/Admin/Pages/ModifyPage.cshtml
+++ b/GanjooRazor/Areas/Admin/Pages/ModifyPage.cshtml
@@ -329,6 +329,8 @@
شمارش واژگان
+ برگردان تاجیکی
+
diff --git a/GanjooRazor/Areas/Admin/Pages/ModifyPage.cshtml.cs b/GanjooRazor/Areas/Admin/Pages/ModifyPage.cshtml.cs
index a68e3263..cd8ecf83 100644
--- a/GanjooRazor/Areas/Admin/Pages/ModifyPage.cshtml.cs
+++ b/GanjooRazor/Areas/Admin/Pages/ModifyPage.cshtml.cs
@@ -356,6 +356,27 @@ namespace GanjooRazor.Areas.Admin.Pages
return new OkObjectResult(false);
}
+ public async Task OnPostTransilerateAsync()
+ {
+ using (HttpClient secureClient = new HttpClient())
+ {
+ if (await GanjoorSessionChecker.PrepareClient(secureClient, Request, Response))
+ {
+ HttpResponseMessage response = await secureClient.PutAsync($"{APIRoot.Url}/api/ganjoor/transilerate", null);
+ if (!response.IsSuccessStatusCode)
+ {
+ return BadRequest(JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync()));
+ }
+ return new OkObjectResult(true);
+ }
+ }
+ return new OkObjectResult(false);
+ }
+
+
+
+
+
public async Task OnPostCleanCacheAsync(int id)
{
using (HttpClient secureClient = new HttpClient())
diff --git a/GanjooRazor/Pages/Shared/_AdminLayout.cshtml b/GanjooRazor/Pages/Shared/_AdminLayout.cshtml
index 58cc7766..f1803675 100644
--- a/GanjooRazor/Pages/Shared/_AdminLayout.cshtml
+++ b/GanjooRazor/Pages/Shared/_AdminLayout.cshtml
@@ -199,6 +199,27 @@
});
}
+
+
+ function transilerate() {
+ if (!confirm('آیا از شروع برگردان تاجیکی اطمینان دارید؟'))
+ return;
+
+ var url = '?handler=Transilerate';
+
+ $.ajax({
+ type: "POST",
+ url: url,
+ error: function () {
+ alert('خطا رخ داد.')
+ },
+ success: function () {
+ alert('فرایند شروع شد.')
+ },
+
+ });
+ }
+
function rebuildRebuildWordCounts(poetId) {
if (!confirm('آیا از شمارش واژگان برای شاعر جاری با کد '+poetId.toString() + ' اطمینان دارید؟'))
return;
diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml
index 72aba2bb..c65aa5a6 100644
--- a/RMuseum/RMuseum.xml
+++ b/RMuseum/RMuseum.xml
@@ -4078,6 +4078,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
donation expenditures