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()); }
public async Task <ActionResult> Edit(int id) { var c = await cl.GetContactAsync(id); return(View(c)); }