Пример #1
0
        public async Task <Result <Students> > GetPortfolios(string searchQuery, int page)
        {
            this.logger.LogDebug("GetPortfolios");
            try
            {
                var res = await client.GetPortfolio(searchQuery, page);

                return(Result <Students> .Success(converter.ParsePortfolios(res, page)));
            }
            catch (Exception e)
            {
                this.logger.LogError(e, "GetPortfolios");
                return(Result <Students> .Failure(e));
            }
        }