Ejemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Note = await _noteClient.Get(id);

            if (Note == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Ejemplo n.º 2
0
        public async Task OnGetAsync()
        {
            var _note = await _noteClient.Get();

            this.Note = _note;
        }