Example #1
0
        public string Post(ContactDetails contact)
        {
            string message = "";

            try
            {
                DataHolder objDataHolder = new DataHolder(xmlPath);
                objDataHolder.AddContact(contact);

                message = "Contract added successfully!!!";
            }
            catch (Exception ex)
            {
                message = ex.Message.ToString();
            }
            return(message);
        }