/// <summary>
        ///
        /// </summary>
        /// <param name="dao"></param>
        /// <returns></returns>
        public static ContactProperty ToObj(this DAO.ContactProperty dao)
        {
            if (dao == null)
            {
                return(null);
            }

            var obj = new ContactProperty();

            obj.Comment     = dao.Comment;
            obj.ContactLINK = dao.Contact.LINK;
            obj.Format      = dao.Format;
            obj.LINK        = dao.LINK;
            obj.Name        = dao.Name;
            obj.Type        = dao.Type;
            obj.Value       = dao.Value;

            return(obj);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="contact"></param>
        /// <returns></returns>
        public static DAO.ContactProperty ToDao(this ContactProperty obj, DAO.Contact contact)
        {
            if (obj == null)
            {
                return(null);
            }

            var dao = new DAO.ContactProperty();

            dao.Comment = (String.IsNullOrEmpty(obj.Comment) ? null : obj.Comment);
            dao.Contact = contact;
            dao.Format  = (String.IsNullOrEmpty(obj.Format) ? null : obj.Format);
            dao.LINK    = obj.LINK;
            dao.Name    = obj.Name;
            dao.Type    = (String.IsNullOrEmpty(obj.Type) ? null : obj.Type);
            dao.Value   = obj.Value;

            return(dao);
        }