Refactoring, database structure changed
This commit is contained in:
12
WatchIt.WebAPI/Repositories/Genres/IGenresRepository.cs
Normal file
12
WatchIt.WebAPI/Repositories/Genres/IGenresRepository.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using WatchIt.Database.Model.Genres;
|
||||
using WatchIt.DTO.Models.Controllers.Genres.Genre;
|
||||
using WatchIt.DTO.Query;
|
||||
|
||||
namespace WatchIt.WebAPI.Repositories.Genres;
|
||||
|
||||
public interface IGenresRepository : IRepository<Genre>
|
||||
{
|
||||
Task<bool> ExistsAsync(short id);
|
||||
Task<Genre?> GetAsync(short id, Func<IQueryable<Genre>, IQueryable<Genre>>? additionalIncludes = null);
|
||||
Task<IEnumerable<Genre>> GetAllAsync(GenreFilterQuery filterQuery, OrderQuery orderQuery, PagingQuery pagingQuery, Func<IQueryable<Genre>, IQueryable<Genre>>? additionalIncludes = null);
|
||||
}
|
||||
Reference in New Issue
Block a user