/// <summary> /// Gets a single studio. /// </summary> /// <param name="anilistStudioId">The AniList numeric based identifier.</param> /// <returns>Returns a single studio.</returns> public async Task <Studio> GetStudioAsync(long anilistStudioId) { var url = HttpUtility.HtmlEncode(AniListApiHelper.GetUrl(AnilistTypes.Studio, QueryType.Single, anilistStudioId)); try { var rawStudio = await GenericGetAsync <StudioDTO>(url); return(Studio.ConstructFromDto(rawStudio)); } catch (Exception e) { throw new Exception($"Failed to retrieve search. Error: {e}"); } }