Ejemplo n.º 1
0
    public Task <ResultList <Card> > Search(string query, int page, SearchOptions options = default)
    {
        if (page < 1)
        {
            page = 1;
        }

        query = WebUtility.UrlEncode(query);
        return(_restService.GetAsync <ResultList <Card> >($"/cards/search?q={query}&page={page}&{options.BuildQueryString()}"));
    }