public EmployeeLib MapToOrm(DalEmployeeLib entity) { return(new EmployeeLib { id = entity.Id }); }
public BllEmployeeLib MapToBll(DalEmployeeLib entity) { BllEmployeeLib bllEntity = new BllEmployeeLib { Id = entity.Id }; ISelectedEmployeeMapper selectedEmployeeMapper = new SelectedEmployeeMapper(uow); foreach (var Employee in uow.SelectedEmployees.GetEmployeesByLibId(bllEntity.Id)) { var bllSelectedEmployee = selectedEmployeeMapper.MapToBll(Employee); bllEntity.SelectedEmployee.Add(bllSelectedEmployee); } return bllEntity; }