//++++++++ public IDataResult <List <PostCardList2Dto> > GetByCategoryId(string categoryId) { return(new SuccessDataResult <List <PostCardList2Dto> >(_postCategoryDal.GetByCategoryId(categoryId).ToList())); // return new SuccessDataResult<List<PostCardListDto>>(_postCategoryDal.GetAll2(p => p.CategoryId == categoryId).ToList()); }