public static async Task <IEnumerable <Anime> > GetByFilterAsync(Action <AnimeFilter> filter) { var aFilter = new AnimeFilter(); filter(aFilter); logger.Info($"GetByFilter(Action<AnimeFilter>) | genered_url: [{aFilter.BuildQuery()}]"); return(await Api.GetAsync <IEnumerable <Anime> >($"/animes{aFilter.BuildQuery()}").ConfigureAwait(false)); }
public static async Task <IEnumerable <Anime> > GetByFilterAsync(AnimeFilter filter) { return(await Api.GetAsync <IEnumerable <Anime> >($"/animes{filter.BuildQuery()}").ConfigureAwait(false)); }