private async Task UpdatePayrollEntryDocumentDetailsUnit(PayrollEntryDocumentDetailInputUnit payrollEntryDocumentDetail) { var payrollEntryDocumentDetailUnit = await _payrollEntryDocumentDetailUnitRepository.GetAsync(payrollEntryDocumentDetail.AccountingItemId); Mapper.Map(payrollEntryDocumentDetail, payrollEntryDocumentDetailUnit); await _payrollEntryDocumentDetailUnitManager.UpdateAsync(payrollEntryDocumentDetailUnit); }
private async Task CreatePayrollEntryDocumentDetailsUnit(PayrollEntryDocumentDetailInputUnit payrollEntryDocumentDetail) { var payrollEntryDocumentDetailUnit = payrollEntryDocumentDetail.MapTo <PayrollEntryDocumentDetailUnit>(); payrollEntryDocumentDetailUnit.OriginalAccountId = payrollEntryDocumentDetail.AccountId; payrollEntryDocumentDetailUnit.OriginalJobId = payrollEntryDocumentDetail.JobId; await _payrollEntryDocumentDetailUnitManager.CreateAsync(payrollEntryDocumentDetailUnit); }