//DeletePhoneNumber public IActionResult DeletePhone(Guid PhoneContactId) { var item = phoneContactRepository.GetById(PhoneContactId); phoneContactRepository.Delete(item); return(RedirectToAction("ListPhoneNumber")); }
public IActionResult DeletePhone(Guid phonecontactid) { var item = phoneContactRepository.GetById(phonecontactid); phoneContactRepository.DeletePhone(item); return(RedirectToAction("Index")); }