Exemplo n.º 1
0
        public IEnumerable <CommentModel> GetPagedComments(string postId, int skip, int size)
        {
            var result = new List <CommentModel>();

            using (var context = new SocialFeedEntities())
            {
                var comments = context.GetComments(postId, skip, size).ToList();
                return(MapCommentProcedureResult(comments));
            }
        }