public async Task <IActionResult> GetArticleList(ArticleForGetListDto dto) { var result = await _articleService.GetArticleList(dto); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public async Task <IDataResult <List <Article> > > GetArticleList(ArticleForGetListDto dto) { return(new SuccessDataResult <List <Article> >(await _articleDal.GetListAsync(a => a.UserId == dto.UserId))); }