// GET: api/NoteType/5 public CommentType Get(int id) { return(NotesData.GetCommentTypes().Where(x => x.Id == id).FirstOrDefault()); }
// GET: api/NoteType public IEnumerable <CommentType> Get() { return(NotesData.GetCommentTypes().ToArray()); }