Пример #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());
 }