public async Task <ActionResult <Payroll> > GetCustomerPayroll([FromRoute] int id) { var result = await payrollRepository.GetCustomerPayroll(id); if (result != null) { return(Ok(result)); } else { return(NotFound("Customer not found...")); } }