Finishing to fix repositories

This commit is contained in:
Zoe Roux
2021-03-06 20:21:35 +01:00
parent 76cdbc77a3
commit b907e45a08
21 changed files with 4870 additions and 51 deletions
@@ -263,6 +263,9 @@ namespace Kyoo.Controllers
public Task Load(IResource obj, string member)
{
if (obj == null)
throw new ArgumentNullException(nameof(obj));
return (obj, member) switch
{
(Library l, nameof(Library.Providers)) => ProviderRepository