//DeletePhoneNumber
        public IActionResult DeletePhone(Guid PhoneContactId)
        {
            var item = phoneContactRepository.GetById(PhoneContactId);

            phoneContactRepository.Delete(item);
            return(RedirectToAction("ListPhoneNumber"));
        }
Example #2
0
        public IActionResult DeletePhone(Guid phonecontactid)
        {
            var item = phoneContactRepository.GetById(phonecontactid);

            phoneContactRepository.DeletePhone(item);

            return(RedirectToAction("Index"));
        }