using System.Collections.Generic; using System.Threading.Tasks; using API.DTOs; using API.Entities; using Microsoft.AspNetCore.Mvc; namespace API.Interfaces { public interface ILibraryRepository { void Update(Library library); Task SaveAllAsync(); Task> GetLibrariesAsync(); /// /// Checks to see if a library of the same name exists. We only allow unique library names, no duplicates per LibraryType. /// /// /// Task LibraryExists(string libraryName); Task GetLibraryDtoForIdAsync(int libraryId); Task GetLibraryForIdAsync(int libraryId); bool SaveAll(); Library GetLibraryForName(string libraryName); Task> GetLibrariesForUsernameAysnc(string userName); //Task> GetSeriesForIdAsync(int libraryId); } }