#478 contribs page

This commit is contained in:
Hamid Reza Mohammadi 2025-03-30 21:12:12 +03:30
parent 25394f8b6e
commit 2f2c7ec25c
2 changed files with 4 additions and 4 deletions

View File

@ -190,7 +190,7 @@ namespace GanjooRazor.Pages
}
public async Task<ActionResult> OnGetGroupedByDayAsync(string dataType, int pageNumber)
public async Task<ActionResult> OnGetGroupedByUsersAsync(string dataType, int pageNumber)
{
var responseUsers = await _httpClient.GetAsync($"{APIRoot.Url}/api/contributions/{dataType}/by/user?PageNumber=1&PageSize=30");
@ -216,7 +216,7 @@ namespace GanjooRazor.Pages
};
}
public async Task<ActionResult> OnGetGroupedByUsersAsync(string dataType, int pageNumber)
public async Task<ActionResult> OnGetGroupedByDayAsync(string dataType, int pageNumber)
{
var responseDays = await _httpClient.GetAsync($"{APIRoot.Url}/api/contributions/{dataType}/daily?PageNumber={pageNumber}&PageSize=30");

View File

@ -40,7 +40,7 @@
@if (i % 2 == 0)
{
<tr class="e">
<td class="c1">@((i + 1).ToPersianNumbers())</td>
<td class="c1">@((((Model.DaysPagination.currentPage - 1) * Model.DaysPagination.pageSize) + i + 1).ToPersianNumbers())</td>
<td class="c2">@RMuseum.Services.Implementation.LanguageUtils.FormatInShortDate(DateTime.Parse(Model.Days[i].Date))</td>
<td class="c3">@RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.Days[i].Number)</td>
</tr>
@ -49,7 +49,7 @@
else
{
<tr>
<td class="c1">@((i + 1).ToPersianNumbers())</td>
<td class="c1">@((((Model.DaysPagination.currentPage - 1) * Model.DaysPagination.pageSize) + i + 1).ToPersianNumbers())</td>
<td class="c2">@RMuseum.Services.Implementation.LanguageUtils.FormatInShortDate(DateTime.Parse(Model.Days[i].Date))</td>
<td class="c3">@RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.Days[i].Number)</td>
</tr>