Beispiel #1
0
        public int FacilitatorAdd(Facilitator_Qualification fqualification)
        {
            //添加资质证明并返回自增id
            var qualificationid = _facilitator.AddQualification(fqualification);

            //赋值
            fqualification.QualificationId = qualificationid;
            //添加个人信息并返回自增id
            var facilitatorid = _facilitator.AddFacilitator(fqualification);

            fqualification.UserInfoId = facilitatorid;
            fqualification.UserTypeId = 2;
            //添加账户
            var result = _facilitator.AddUser(fqualification);

            return(result);
        }