Ejemplo n.º 1
0
        public IHttpActionResult Get()
        {
            Note_CommentService note_commentService = CreateNote_CommentService();
            var note_comments = note_commentService.GetNote_Comments();

            return(Ok(note_comments));
        }
Ejemplo n.º 2
0
        public IHttpActionResult Get(int id, int id2)
        {
            Note_CommentService note_commentService = CreateNote_CommentService();
            var note_comment = note_commentService.GetNote_CommentById(id, id2);

            return(Ok(note_comment));
        }
Ejemplo n.º 3
0
        private Note_CommentService CreateNote_CommentService()
        {
            var userId = Guid.Parse(User.Identity.GetUserId());
            var note_commentService = new Note_CommentService(userId);

            return(note_commentService);
        }