public IHttpActionResult Get() { Note_CommentService note_commentService = CreateNote_CommentService(); var note_comments = note_commentService.GetNote_Comments(); return(Ok(note_comments)); }
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)); }
private Note_CommentService CreateNote_CommentService() { var userId = Guid.Parse(User.Identity.GetUserId()); var note_commentService = new Note_CommentService(userId); return(note_commentService); }