示例#1
0
 public async Task Update(AdditionalIncomeBll elementToUpdate)
 {
     _unitOfWork.AdditionalIncomeUnitOfWork.Update(TransformEntity(elementToUpdate));
     await _unitOfWork.Save();
 }
示例#2
0
 private AdditionalIncome TransformEntity(AdditionalIncomeBll entity) =>
 Mapper.Map <AdditionalIncomeBll, AdditionalIncome>(entity);
示例#3
0
 public async Task Insert(AdditionalIncomeBll element)
 {
     _unitOfWork.AdditionalIncomeUnitOfWork.Insert(TransformEntity(element));
     await _unitOfWork.Save();
 }