public async Task <IActionResult> GetNoteById(int id) { var note = await _notes.GetById(id, _cancellation); if (!note.HasValue) { return(NotFound()); } return(new RestResult(NoteDTO.FromNote(note.Value))); }
public async Task <IActionResult> GetNoteById(int id) { var note = await _notes.GetById(id, _cancellation); if (!note.HasValue) { return(NotFound()); } return(new RestResult(NoteDTO.FromNote(note.Value))); }