예제 #1
0
 public async Task <IEnumerable <GetLikeDTO> > GetLikes(int skip, int take, ActionFor actionFor, int actionForId)
 {
     return(await likeService.GetLikes(skip, take, actionFor, actionForId));
 }
예제 #2
0
        public async Task <IEnumerable <GetCommentDTO> > GetComments(int skip, int take, ActionFor actionFor, int actionForId)
        {
            var comments = await _repository.Queryable().Include(c => c.CreatedUser).Where(c => c.PostId == actionForId).OrderByDescending(p => p.CreatedDate).Skip(skip).Take(take).ToListAsync();

            return(comments.Select(Mapper.Map <GetCommentDTO>));
        }
예제 #3
0
 public async Task <IEnumerable <GetCommentDTO> > GetComments(int skip, int take, ActionFor actionFor, int actionForId)
 {
     return(await commentService.GetComments(skip, take, actionFor, actionForId));
 }