Ejemplo n.º 1
0
        public async Task RunPayrollByCompany(int companyId)
        {
            var employees = await _payrollRepository.GetActiveEmployeesByCompany(companyId);

            foreach (var employee in employees)
            {
                await CreatePaycheck(employee);
            }
        }