Beispiel #1
0
 public static CategoryMasterModel CategoryMasterMapper(ta_ussbk_categoryMaster tentity)
 {
     if (tentity != null)
     {
         var resultl = new CategoryMasterModel
         {
             catid   = tentity.catid,
             catname = tentity.catname,
         };
         return(resultl);
     }
     return(null);
 }
Beispiel #2
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);
     }
 }