Ejemplo n.º 1
0
        public async Task <IActionResult> GetArticleList(ArticleForGetListDto dto)
        {
            var result = await _articleService.GetArticleList(dto);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
Ejemplo n.º 2
0
 public async Task <IDataResult <List <Article> > > GetArticleList(ArticleForGetListDto dto)
 {
     return(new SuccessDataResult <List <Article> >(await _articleDal.GetListAsync(a => a.UserId == dto.UserId)));
 }