Ejemplo n.º 1
0
        public IActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            _service = new ContactsService();
            Contact editContact = _service.GetById(id);

            if (editContact == null)
            {
                return(NotFound());
            }
            return(View(editContact));
        }