public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Note = await _noteClient.Get(id); if (Note == null) { return(NotFound()); } return(Page()); }
public async Task OnGetAsync() { var _note = await _noteClient.Get(); this.Note = _note; }