Exemplo n.º 1
0
        // POST api/Contact
        public void Post(string firstName, string lastName, string email, int phnNum)
        {
            ContactDatabase contactDatabase = new ContactDatabase();
            Contact         contactList     = contactDatabase.SaveContact(firstName, lastName, email, phnNum);

            var newContact = new ContactDetails {
                FirstName   = contactList.FirstName,
                LastName    = contactList.LastName,
                Email       = contactList.Email,
                PhoneNumber = contactList.PhoneNumber
            };
        }