Exemplo n.º 1
0
 public Employee UpdateEmployee(Employee updatedEmployee)
 {
     return(AutoMapperConfig.getMapper().Map <EmployeeDL, Employee>(_employeeData.UpdateEmployee(AutoMapperConfig.getMapper().Map <Employee, EmployeeDL>(updatedEmployee))));
 }
Exemplo n.º 2
0
 public Employee AddEmployee(Employee newEmployee)
 {
     return(AutoMapperConfig.getMapper().Map <EmployeeDL, Employee>(_employeeData.AddEmployee(AutoMapperConfig.getMapper().Map <Employee, EmployeeDL>(newEmployee))));
 }