Esempio n. 1
0
        // Article
        public async Task <IEnumerable <Article> > GetArticlesAsync(ArticleParams articleParams)
        {
            // Gotta back for implementing orderby date after another migration
            var articles = _context.Articles
                           .Where(a => a.IsDeleted == false)
                           .Include(a => a.Category)
                           .AsQueryable();

            articles = TQuery.ArticleQuery(articleParams, articles);

            return(await articles.ToListAsync());
        }