ASP.NET_Core_SPAs.Controllers.ContactsController.Edit C# (CSharp) Method

Edit() public method

public Edit ( int id ) : Task
id int
return Task
        public async Task<IActionResult> Edit(int? id)
        {
            if (id == null)
            {
                return NotFound();
            }

            var contact = await GetContacts().SingleAsync(m => m.Id == id);
            if (contact == null)
            {
                return NotFound();
            }
            return View(contact);
        }

Same methods

ContactsController::Edit ( Contact contact ) : Task