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