diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-10 09:41:24 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-10 09:41:24 -0500 |
| commit | 227dd0a42d398978ca085a607345a7877de87950 (patch) | |
| tree | 19f3d394d5be259fd32ea04e4f966082372e1715 /MediaBrowser.Api/UserLibrary/GameGenresService.cs | |
| parent | c1ae3ec2ce803b16fa9ecc0981865aa7c9be172b (diff) | |
rework result factory
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/GameGenresService.cs')
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/GameGenresService.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/MediaBrowser.Api/UserLibrary/GameGenresService.cs b/MediaBrowser.Api/UserLibrary/GameGenresService.cs index 809df2531..2eef1ab2f 100644 --- a/MediaBrowser.Api/UserLibrary/GameGenresService.cs +++ b/MediaBrowser.Api/UserLibrary/GameGenresService.cs @@ -37,11 +37,6 @@ namespace MediaBrowser.Api.UserLibrary [Authenticated] public class GameGenresService : BaseItemsByNameService<GameGenre> { - public GameGenresService(IUserManager userManager, ILibraryManager libraryManager, IUserDataManager userDataRepository, IItemRepository itemRepo, IDtoService dtoService) - : base(userManager, libraryManager, userDataRepository, itemRepo, dtoService) - { - } - /// <summary> /// Gets the specified request. /// </summary> @@ -63,8 +58,8 @@ namespace MediaBrowser.Api.UserLibrary { var item = GetGameGenre(request.Name, LibraryManager); - var dtoOptions = GetDtoOptions(request); - + var dtoOptions = GetDtoOptions(AuthorizationContext, request); + if (!string.IsNullOrWhiteSpace(request.UserId)) { var user = UserManager.GetUserById(request.UserId); @@ -102,5 +97,9 @@ namespace MediaBrowser.Api.UserLibrary { throw new NotImplementedException(); } + + public GameGenresService(IUserManager userManager, ILibraryManager libraryManager, IUserDataManager userDataRepository, IItemRepository itemRepository, IDtoService dtoService, IAuthorizationContext authorizationContext) : base(userManager, libraryManager, userDataRepository, itemRepository, dtoService, authorizationContext) + { + } } } |
