public Task <object> Get(GetInstantMixFromMusicGenre request) { var user = _userManager.GetUserById(request.UserId); var items = _musicManager.GetInstantMixFromGenres(new[] { request.Name }, user); return(GetResult(items, user, request)); }
public object Get(GetInstantMixFromMusicGenre request) { var genre = GetMusicGenre(request.Name, _libraryManager); var result = GetInstantMixResult(request, new[] { genre.Name }); return(ToOptimizedSerializedResultUsingCache(result)); }
public object Get(GetInstantMixFromMusicGenre request) { var user = _userManager.GetUserById(request.UserId.Value); var items = _musicManager.GetInstantMixFromGenres(new[] { request.Name }, user); return GetResult(items, user, request); }
public object Get(GetInstantMixFromMusicGenre request) { var genre = GetMusicGenre(request.Name, _libraryManager); var result = GetInstantMixResult(request, new[] { genre.Name }); return ToOptimizedSerializedResultUsingCache(result); }
public Task <object> Get(GetInstantMixFromMusicGenre request) { var user = _userManager.GetUserById(request.UserId); var dtoOptions = GetDtoOptions(_authContext, request); var items = _musicManager.GetInstantMixFromGenres(new[] { request.Name }, user, dtoOptions); return(GetResult(items, user, request, dtoOptions)); }