Esempio n. 1
0
        public EmployeDTO GetEmployeWithAnnualSalary(int id)
        {
            var employe = _secretaryDao.GetEmploye(id);

            employeTemp = employe;
            AccountantAssistantMapping accountantAssistantMapping = _serviceProvider.GetService <AccountantAssistantMapping>();

            return(accountantAssistantMapping.MappingEmploye(employe));
        }
Esempio n. 2
0
        public List <EmployeDTO> GetEmployeesWithAnnualSalary()
        {
            List <EmployeDTO> employeesDTO = new List <EmployeDTO>();
            var employees = _secretaryDao.GetEmployees();

            foreach (Employe employe in employees)
            {
                employeTemp = employe;
                AccountantAssistantMapping accountantAssistantMapping = _serviceProvider.GetService <AccountantAssistantMapping>();
                employeesDTO.Add(accountantAssistantMapping.MappingEmploye(employe));
            }
            return(employeesDTO);
        }