public async Task <Payment> GetPaymentByIdAsync(int paymentId) { var payment = await _paymentsRepository.GetPaymentByIdIdAsync(paymentId); payment.Department = await _departmentsRepository.GetByIdAsync(payment.DepartmentId); return(payment); }