コード例 #1
0
 public long Create(ClientRecordModel tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new ta_ussbk_clientrecord
         {
             businessname  = tentity.businessname,
             clientaddress = tentity.clientaddress,
             clientemail   = tentity.clientemail,
             clientname    = tentity.clientname,
             contactmobile = tentity.contactmobile,
             formodule     = tentity.formodule,
             productid     = tentity.productid,
             productname   = tentity.productname,
             userrole      = tentity.userrole,
             userblocked   = tentity.userblocked,
             expirydate    = tentity.expirydate,
             remarks       = tentity.remarks,
         };
         _unitOfWork.ClientRecordRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.recordid);
     }
 }
コード例 #2
0
 public long Create(TagsModel tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new ta_blog_tags
         {
             tagname = tentity.tagname,
         };
         _unitOfWork.TagsRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.tagid);
     }
 }
コード例 #3
0
 public long Create(TitleMasterModel tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new ta_ussbk_TitleMaster
         {
             titlename = tentity.titlename,
         };
         _unitOfWork.TitleMasterRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.titleid);
     }
 }
コード例 #4
0
 public long Create(ProjectDetailEntity tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new ta_ussbk_ProjectDetail
         {
             projectdetail = tentity.projectdetail,
         };
         _unitOfWork.ProjectDetailRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.amtdtid);
     }
 }
コード例 #5
0
 public long Create(CategoryMasterModel tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new ta_ussbk_categoryMaster
         {
             catname = tentity.catname,
         };
         _unitOfWork.CategotyMasterRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.catid);
     }
 }
コード例 #6
0
ファイル: CouponServiceG.cs プロジェクト: gssaini7/ebrickkiln
 public long Create(CouponEntity tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new TA_ussbk_Coupons
         {
             couponcode    = tentity.couponcode,
             cmsgforuser   = tentity.cmsgforuser,
             cAdminRemarks = tentity.cAdminRemarks,
             cblocked      = tentity.cblocked,
             camount       = tentity.camount,
         }; _unitOfWork.CouponRepository.Insert(NewRecord); _unitOfWork.Save(); scope.Complete();
         return(NewRecord.couponid);
     }
 }
コード例 #7
0
 public long Create(DbManagerEntity tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new Ta_Manager
         {
             //mguid = tentity.mguid,
             mcontent = tentity.mcontent,
             mrowtype = tentity.mrowtype,
         };
         _unitOfWork.ManagerRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.mid);
     }
 }
コード例 #8
0
 public long Create(DescriptionModuleModel tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new ta_ussbk_Description
         {
             descanydescription = tentity.descanydescription,
             desccategory       = tentity.desccategory,
             desctitile         = tentity.desctitile,
             descvideolink      = tentity.descvideolink,
             websitemodule      = tentity.websitemodule,
         };
         _unitOfWork.DescriptionRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.descriptionid);
     }
 }
コード例 #9
0
 public long Create(ClientComments tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new ta_ussbk_client_comment
         {
             cmntcontent    = tentity.cmntcontent,
             cmntcreatedate = tentity.cmntcreatedate,
             cmntdate       = tentity.cmntdate,
             cmntype        = tentity.cmntype,
             userfkid       = tentity.userfkid,
         };
         _unitOfWork.ClientCommentRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.cmntid);
     }
 }
コード例 #10
0
        public long Create(BlogModuleModel tentity)
        {
            using (var scope = new TransactionScope())
            {
                var NewRecord = new ta_blog
                {
                    blogdate        = tentity.blogdate,
                    blogdescription = tentity.blogdescription,
                    blogimage       = tentity.blogimage,
                    blogkeywords    = tentity.blogkeywords,
                    blogtags        = tentity.blogtags,
                    blogtitle       = tentity.blogtitle,
                    blogupdate      = tentity.blogupdate,
                    blogwebsite     = tentity.blogwebsite,
                    blogpublished   = tentity.blogpublished,
                };


                _unitOfWork.BlogsRepository.Insert(NewRecord);
                _unitOfWork.Save();
                scope.Complete();
                return(NewRecord.blogid);
            }
        }