public void UpdateRecords(IUnitOfWork uow, ExpenseCashDistributionDocument document, Expense expense, Employee editor)
 {
     UpdateExpenseCashDistributionDocument(document, expense, editor);
     UpdateOrganisationCashMovementOperation(document.OrganisationCashMovementOperation, expense);
     Save(document.OrganisationCashMovementOperation, document, uow);
 }
 private void UpdateExpenseCashDistributionDocument(ExpenseCashDistributionDocument doc, Expense expense, Employee editor)
 {
     doc.LastEditor     = editor;
     doc.LastEditedTime = DateTime.Now;
     doc.Amount         = -expense.Money;
 }
 private void Save(OrganisationCashMovementOperation operation, ExpenseCashDistributionDocument document, IUnitOfWork uow)
 {
     uow.Save(operation);
     uow.Save(document);
 }