public DalEmployeeLib MapToDal(BllEmployeeLib entity) { return new DalEmployeeLib { 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; }