Skip to content

Commit 35d2db0

Browse files
#7411 Minor improvement
1 parent 9b8044f commit 35d2db0

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/Libraries/Nop.Services/FilterLevels/FilterLevelValueService.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,19 @@ public virtual async Task<FilterLevelValue> GetFilterLevelValueByIdAsync(int fil
133133
/// Gets filter level values by product identifier
134134
/// </summary>
135135
/// <param name="productId">Product identifier</param>
136-
/// <param name="pageIndex">Page index</param>
137-
/// <param name="pageSize">Page size</param>
138136
/// <returns>
139137
/// A task that represents the asynchronous operation
140138
/// The task result contains the filter level values
141139
/// </returns>
142-
public virtual async Task<IList<FilterLevelValue>> GetFilterLevelValuesByProductIdAsync(int productId,
143-
int pageIndex = 0, int pageSize = int.MaxValue)
140+
public virtual async Task<IList<FilterLevelValue>> GetFilterLevelValuesByProductIdAsync(int productId)
144141
{
145142
var query = from flv_map in _filterLevelValueProductMappingRepository.Table
146143
join flv in _filterLevelValueRepository.Table on flv_map.FilterLevelValueId equals flv.Id
147144
where flv_map.ProductId == productId
148145
orderby flv.Id
149146
select flv;
150147

151-
return await query.ToPagedListAsync(pageIndex, pageSize);
148+
return await query.ToListAsync();
152149
}
153150

154151
/// <summary>

src/Libraries/Nop.Services/FilterLevels/IFilterLevelValueService.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,11 @@ public partial interface IFilterLevelValueService
5353
/// Gets filter level values by product identifier
5454
/// </summary>
5555
/// <param name="productId">Product identifier</param>
56-
/// <param name="pageIndex">Page index</param>
57-
/// <param name="pageSize">Page size</param>
5856
/// <returns>
5957
/// A task that represents the asynchronous operation
6058
/// The task result contains the filter level values
6159
/// </returns>
62-
Task<IList<FilterLevelValue>> GetFilterLevelValuesByProductIdAsync(int productId,
63-
int pageIndex = 0, int pageSize = int.MaxValue);
60+
Task<IList<FilterLevelValue>> GetFilterLevelValuesByProductIdAsync(int productId);
6461

6562
/// <summary>
6663
/// Gets filter level values by identifier

0 commit comments

Comments
 (0)