Exemple #1
0
        public async Task EmployeeDeleteEmployee(Guid employeeUID)
        {
            await EmployeeRepository.EmlpoyeeDelete(employeeUID);

            var requests = await RequestRepository.RequestGetAllEmployeeRequests(employeeUID);

            requests.Select(async x => await RequestRepository.RequestDelete(x.RequestUID));

            var contracts = await ContractRepository.ContractsGetContractByEmployee(employeeUID);

            contracts.Select(async x => await ContractRepository.ContractDelete(x.ContractUID));

            var additionalDays = await AdditionalDaysRepository.AdditonalDaysGetAllAdditionalDays(employeeUID);

            additionalDays.Select(async x => await AdditionalDaysRepository.AdditonalDaysDelete(x.AdditionaDaysUID));
        }
Exemple #2
0
 public async Task ContractDeleteContract(Guid contractUID)
 {
     await ContractRepository.ContractDelete(contractUID);
 }