Ejemplo n.º 1
0
        public int PublisherAdd(Publisher_Certificate pcertificate)
        {
            //添加资质证明并返回自增id
            var certificateid = _publisher.AddCertificate(pcertificate);

            //赋值
            pcertificate.CertificateId = certificateid;
            //添加个人信息并返回自增id
            var publisherid = _publisher.AddPublisher(pcertificate);

            //赋值
            pcertificate.UserInfoId = publisherid;
            pcertificate.UserTypeId = 1;
            //添加账户
            var result = _publisher.AddUser(pcertificate);

            return(result);
        }