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