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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }