private void GetPayrollById(Guid id) { Payroll payroll = payrollRepository.GetById(id); if (payroll != null) { ViewPayrollDetail(payroll); } }