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