Esempio n. 1
0
        public SongDetailsContract GetSongDetails(string term, ContentLanguagePreference?language = null)
        {
            if (language.HasValue)
            {
                userPermissionContext.OverrideLanguage(language.Value);
            }

            var matchMode = NameMatchMode.Auto;

            term = FindHelpers.GetMatchModeAndQueryForSearch(term, ref matchMode);

            var song = Services.Songs.FindFirstDetails(term, matchMode);

            return(song);
        }