Example #1
0
 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);
 }
Example #2
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);
     }
 }