public async Task <IEnumerable <GetLikeDTO> > GetLikes(int skip, int take, ActionFor actionFor, int actionForId) { return(await likeService.GetLikes(skip, take, actionFor, actionForId)); }
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>)); }
public async Task <IEnumerable <GetCommentDTO> > GetComments(int skip, int take, ActionFor actionFor, int actionForId) { return(await commentService.GetComments(skip, take, actionFor, actionForId)); }