public async Task <Employee> GetEmployeeWithDependentsAsync(IEmployeeRepository employeeRepository, IDependentRepository dependentRepository, Guid employeeId)
        {
            var employee = await employeeRepository.GetEmployeeWithDependentsAsync(employeeId);

            employee.Dependents = await dependentRepository.GetAllEmployeeDependentsAsync(employeeId);

            return(employee);
        }
        private async Task <List <InputEmployee> > GetInputEmployees(List <Employee> employees, IDependentRepository dependentRepository)
        {
            var inputEmployees = new List <InputEmployee>();

            foreach (var employee in employees)
            {
                var eTemp = new InputEmployee();
                eTemp.Id   = employee.Id;
                eTemp.Name = $"{employee.FirstName} {employee.LastName}";

                employee.Dependents = await dependentRepository.GetAllEmployeeDependentsAsync(employee.Id);

                foreach (var d in employee.Dependents)
                {
                    var dTemp = new InputDependent();
                    dTemp.Id   = d.Id;
                    dTemp.Name = $"{d.FirstName} {d.LastName}";
                    eTemp.InputDependents.Add(dTemp);
                }
                inputEmployees.Add(eTemp);
            }
            return(inputEmployees);
        }