public async Task Update(SalaryBalanceBll elementToUpdate) { salaryBalance salaryBalance = Mapper.Map <SalaryBalanceBll, salaryBalance>(elementToUpdate); _unitOfWork.SalaruBalanceUnitOfWork.Update(salaryBalance); await _unitOfWork.Save(); }
public async Task Insert(SalaryBalanceBll element) { salaryBalance salaryBalance = Mapper.Map <SalaryBalanceBll, salaryBalance>(element); _unitOfWork.SalaruBalanceUnitOfWork.Insert(salaryBalance); await _unitOfWork.Save(); }