예제 #1
0
 public Contracts.Employee UpdateEmployee(Contracts.Employee employee)
 {
     Model.Employee efEmployee = _mapper.Map <Contracts.Employee, Model.Employee>(employee);
     _employeeRepository.UpdateEmployee(efEmployee);
     return(employee);
 }
예제 #2
0
 public Contracts.Employee CreateEmployee(Contracts.Employee employee)
 {
     Model.Employee efEmployee = _mapper.Map <Contracts.Employee, Model.Employee>(employee);
     efEmployee = _employeeRepository.CreateEmployee(efEmployee);
     return(_mapper.Map <Model.Employee, Contracts.Employee>(efEmployee));
 }