public static TitleMasterModel TitleMasterMapper(ta_ussbk_TitleMaster tentity) { if (tentity != null) { var resultl = new TitleMasterModel { titleid = tentity.titleid, titlename = tentity.titlename, }; return(resultl); } return(null); }
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); } }