Пример #1
0
        public async Task <IActionResult> GetTopSongs(SubsonicRequest request, int?count = 50)
        {
            var authResult = await AuthenticateUser(request).ConfigureAwait(false);

            if (authResult != null)
            {
                return(authResult);
            }
            var result = await SubsonicService.GetTopSongs(request, SubsonicUser, count).ConfigureAwait(false);

            return(BuildResponse(request, result, "topSongs"));
        }