public static ProjectDetailEntity ProjectDetailMapper(ta_ussbk_ProjectDetail tentity) { var resultl = new ProjectDetailEntity { amtdtid = tentity.amtdtid, projectdetail = tentity.projectdetail, }; return(resultl); }
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); } }