Beispiel #1
0
        public async Task <int> UpdateEmployeeDetailsAsync(int ExistingEmployeeID, Models.Employee employeeUpdatedDetails)
        {
            var employeeNewUpdatedDetails = ViewToDbModelMapper.EmployeeMapper.Map(employeeUpdatedDetails);

            return(await _employeeRepository.UpdateEmployeeDetailsAsync(ExistingEmployeeID, employeeNewUpdatedDetails));
        }
Beispiel #2
0
        public async Task <int> AddNewEmployeeAsync(Models.Employee employee)
        {
            var newEmployee = ViewToDbModelMapper.EmployeeMapper.Map(employee);

            return(await _employeeRepository.AddNewEmployeeAsync(newEmployee));
        }