Exemple #1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Contact = await _client.GetContactAsync(id.Value);

            if (Contact == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Exemple #2
0
        public async Task <ActionResult> Edit(int id)
        {
            var c = await cl.GetContactAsync(id);

            return(View(c));
        }