public Contracts.Employee UpdateEmployee(Contracts.Employee employee) { Model.Employee efEmployee = _mapper.Map <Contracts.Employee, Model.Employee>(employee); _employeeRepository.UpdateEmployee(efEmployee); return(employee); }
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)); }