Exemplo n.º 1
0
 public bool DeleteContact(int contactId)
 {
     if (contactId <= 0)
     {
         throw new ArgumentException();
     }
     return(_contactDAL.DeleteContact(contactId));
 }
        /// <summary>
        /// Deletes a contact
        /// </summary>
        /// <param name="contact">Contact Object</param>
        /// <returns>String Success/Failure with respective Error</returns>
        public string DeleteContact(Guid contactID)
        {
            string result = string.Empty;

            try
            {
                result = _iContactDAL.DeleteContact(contactID);
            }
            catch (Exception ex)
            {
                result = ex.Message;
            }
            return(result);
        }
 public void DeleteContact(int id)
 {
     _objContactDAL.DeleteContact(id);
 }