Implemented pagination on GetSeriesForLibrary
This commit is contained in:
parent
0258c43b37
commit
222959981f
4 changed files with 30 additions and 11 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using API.DTOs;
|
||||
using API.Entities;
|
||||
using API.Helpers;
|
||||
|
||||
namespace API.Interfaces
|
||||
{
|
||||
|
@ -11,13 +12,14 @@ namespace API.Interfaces
|
|||
void Update(Series series);
|
||||
Task<Series> GetSeriesByNameAsync(string name);
|
||||
Series GetSeriesByName(string name);
|
||||
|
||||
/// <summary>
|
||||
/// Adds user information like progress, ratings, etc
|
||||
/// </summary>
|
||||
/// <param name="libraryId"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
Task<IEnumerable<SeriesDto>> GetSeriesDtoForLibraryIdAsync(int libraryId, int userId);
|
||||
Task<PagedList<SeriesDto>> GetSeriesDtoForLibraryIdAsync(int libraryId, int userId, UserParams userParams);
|
||||
|
||||
/// <summary>
|
||||
/// Does not add user information like progress, ratings, etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue