Skip to content

Commit dab1223

Browse files
author
{{name}}
committed
Reverts
1 parent 8cd4148 commit dab1223

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Services/UI/OJS.Services.Ui.Business/Implementations/ContestsBusinessService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public async Task<PagedResult<ContestForListingServiceModel>> GetAllByFiltersAnd
346346
var includeHidden = model.IncludeHidden && user.IsAdmin;
347347

348348
var pagedContests =
349-
await contestsData.GetAllAsPageByFiltersAndSorting(model, includeHidden);
349+
await contestsData.GetAllAsPageByFiltersAndSorting<ContestForListingServiceModel>(model, includeHidden);
350350

351351
this.SetContestVisibility(pagedContests.Items);
352352

Services/UI/OJS.Services.Ui.Data/IContestsDataService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Task<PagedResult<TServiceModel>> ApplyFiltersSortAndPagination<TServiceModel>(
1818

1919
Task<IEnumerable<TServiceModel>> GetAllExpired<TServiceModel>();
2020

21-
Task<PagedResult<ContestForListingServiceModel>> GetAllAsPageByFiltersAndSorting(ContestFiltersServiceModel model, bool includeHidden = false);
21+
Task<PagedResult<TServiceModel>> GetAllAsPageByFiltersAndSorting<TServiceModel>(ContestFiltersServiceModel model, bool includeHidden = false);
2222

2323
IQueryable<Contest> GetLatestForParticipantByUsername(string username);
2424

Services/UI/OJS.Services.Ui.Data/Implementations/ContestsDataService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public async Task<IEnumerable<TServiceModel>> GetAllExpired<TServiceModel>()
3939
public IQueryable<Contest> GetAllVisible()
4040
=> this.GetQuery(c => c.IsVisible || c.VisibleFrom <= this.dates.GetUtcNow());
4141

42-
public async Task<PagedResult<ContestForListingServiceModel>> GetAllAsPageByFiltersAndSorting(
42+
public async Task<PagedResult<TServiceModel>> GetAllAsPageByFiltersAndSorting<TServiceModel>(
4343
ContestFiltersServiceModel model,
4444
bool includeHidden = false)
4545
{
@@ -53,7 +53,7 @@ public async Task<PagedResult<ContestForListingServiceModel>> GetAllAsPageByFilt
5353
.Where(c => c.CategoryId.HasValue && model.CategoryIds.Contains(c.CategoryId.Value));
5454
}
5555

56-
return await this.ApplyFiltersSortAndPagination<ContestForListingServiceModel>(contests, model);
56+
return await this.ApplyFiltersSortAndPagination<TServiceModel>(contests, model);
5757
}
5858

5959
public IQueryable<Contest> GetLatestForParticipantByUsername(string username)

0 commit comments

Comments
 (0)