Esempio n. 1
0
        public Guid Create(Guid userId, int contactTypeId, string contactName)
        {
            var userContactId = Guid.NewGuid();
            var re            = (int)db.pb_UserContact_Create(
                userContactId,
                userId,
                contactTypeId,
                contactName).Single();

            if (re > 0)
            {
                return(userContactId);
            }
            else
            {
                return(Guid.Empty);
            }
        }