diff --git a/Kyoo.CommonAPI/ALibraryManager.cs b/Kyoo.Common/Controllers/Implementations/ALibraryManager.cs similarity index 99% rename from Kyoo.CommonAPI/ALibraryManager.cs rename to Kyoo.Common/Controllers/Implementations/ALibraryManager.cs index d809d334..8b276616 100644 --- a/Kyoo.CommonAPI/ALibraryManager.cs +++ b/Kyoo.Common/Controllers/Implementations/ALibraryManager.cs @@ -6,7 +6,7 @@ using Kyoo.Models; namespace Kyoo.Controllers { - public class LibraryManager : ILibraryManager + public class ALibraryManager : ILibraryManager { public ILibraryRepository LibraryRepository { get; } public ILibraryItemRepository LibraryItemRepository { get; } @@ -20,7 +20,7 @@ namespace Kyoo.Controllers public IPeopleRepository PeopleRepository { get; } public IProviderRepository ProviderRepository { get; } - protected LibraryManager(ILibraryRepository libraryRepository, + protected ALibraryManager(ILibraryRepository libraryRepository, ILibraryItemRepository libraryItemRepository, ICollectionRepository collectionRepository, IShowRepository showRepository, diff --git a/Kyoo.Common/Kyoo.Common.csproj b/Kyoo.Common/Kyoo.Common.csproj index 44f198b9..ff7ef1e2 100644 --- a/Kyoo.Common/Kyoo.Common.csproj +++ b/Kyoo.Common/Kyoo.Common.csproj @@ -23,8 +23,4 @@ - - - - diff --git a/Kyoo.CommonAPI/LibraryManager.cs b/Kyoo.CommonAPI/LibraryManager.cs index 5df48c89..ecc38f5d 100644 --- a/Kyoo.CommonAPI/LibraryManager.cs +++ b/Kyoo.CommonAPI/LibraryManager.cs @@ -8,11 +8,11 @@ using Microsoft.EntityFrameworkCore.ChangeTracking; namespace Kyoo.Controllers { - public class TLibraryManager : LibraryManager + public class LibraryManager : ALibraryManager { private readonly DbContext _database; - public TLibraryManager(ILibraryRepository libraryRepository, + public LibraryManager(ILibraryRepository libraryRepository, ILibraryItemRepository libraryItemRepository, ICollectionRepository collectionRepository, IShowRepository showRepository, diff --git a/Kyoo/Startup.cs b/Kyoo/Startup.cs index ea3aabcd..b04a7f18 100644 --- a/Kyoo/Startup.cs +++ b/Kyoo/Startup.cs @@ -146,6 +146,7 @@ namespace Kyoo services.AddScoped(); services.AddScoped(); services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddSingleton();