void CompleteAllocation() { var distributedPayments = _paymentsRepository.GetAllDistributedPayments(UoW); if (distributedPayments.Any()) { foreach (var payment in distributedPayments) { payment.Status = PaymentState.completed; UoW.Save(payment); } UoW.Commit(); } }