Пример #1
0
        public async Task <BaseOutput <object> > Get(int page, int pageSize)
        {
            if (page == 0)
            {
                page = 1;
            }
            if (pageSize == 0)
            {
                pageSize = 10;
            }
            //first check for product in db
            var getNews = await _newsAppService.GeNews(page, pageSize);

            return(getNews);
        }