diff --git a/GanjooRazor/Areas/User/Pages/Editor.cshtml b/GanjooRazor/Areas/User/Pages/Editor.cshtml index bf725cee..1e801f07 100644 --- a/GanjooRazor/Areas/User/Pages/Editor.cshtml +++ b/GanjooRazor/Areas/User/Pages/Editor.cshtml @@ -290,7 +290,10 @@ locationId: locationId, year: year, month: month, - day: day + day: day, + verifiedDate: $("#verifiedDate").is(':checked'), + ignoreInCategory: $("#ignoreInCategory").is(':checked'), + }, success: function() { location.reload(); @@ -1251,9 +1254,18 @@ else + + + + + + + + + - + برچسب جدید diff --git a/GanjooRazor/Areas/User/Pages/Editor.cshtml.cs b/GanjooRazor/Areas/User/Pages/Editor.cshtml.cs index 337ca299..20858336 100644 --- a/GanjooRazor/Areas/User/Pages/Editor.cshtml.cs +++ b/GanjooRazor/Areas/User/Pages/Editor.cshtml.cs @@ -458,7 +458,7 @@ namespace GanjooRazor.Areas.User.Pages } - public async Task OnPostNewGeoDateTagAsync(int poemId, int locationId, string year, int month, string day) + public async Task OnPostNewGeoDateTagAsync(int poemId, int locationId, string year, int month, string day, bool verifiedDate, bool ignoreInCategory) { using (HttpClient secureClient = new HttpClient()) { @@ -473,7 +473,9 @@ namespace GanjooRazor.Areas.User.Pages LocationId = locationId == 0 ? null : locationId, LunarYear = string.IsNullOrEmpty(year) ? null : int.Parse(year), LunarMonth = month == 0 ? null : month, - LunarDay = string.IsNullOrEmpty(day) ? null : int.Parse(day) + LunarDay = string.IsNullOrEmpty(day) ? null : int.Parse(day), + VerifiedDate = verifiedDate, + IgnoreInCategory = ignoreInCategory, } ), Encoding.UTF8,