ASP.NET_Core_SPAs.Controllers.ContactsController.Delete C# (CSharp) 메소드

Delete() 개인적인 메소드

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

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

            return View(contact);
        }