public ActionResult <IEnumerable <CommentDto> > GetComments(int realEstateId, [FromQuery] string skip = "", [FromQuery] string take = "10") { var commentsFromRepo = commentRepo.GetAllCommentsRealEstate(realEstateId, skip, take); return(Ok(_mapper.Map <IEnumerable <CommentDto> >(commentsFromRepo))); }