示例#1
0
        public async Task <Payment> GetPaymentByIdAsync(int paymentId)
        {
            var payment = await _paymentsRepository.GetPaymentByIdIdAsync(paymentId);

            payment.Department = await _departmentsRepository.GetByIdAsync(payment.DepartmentId);

            return(payment);
        }