Esempio n. 1
0
        public IActionResult CreatePhoneContact(PhoneContact phoneContact, Guid contactid)
        {
            if (!ModelState.IsValid)
            {
                return(View());
            }
            phoneContact.ContactId = contactid;

            phoneContactRepository.AddPhoneContact(phoneContact);

            return(RedirectToAction("Index"));
        }
        public IActionResult CreatePhoneNumber(PhoneContact contactph, int contactid)
        {
            if (!ModelState.IsValid)
            {
                return(View(contactph));
            }
            contactph.ContactId = contactid;

            phoneContactRepository.AddPhoneContact(contactph);


            return(RedirectToAction("List"));
        }