public EquipmentLib MapToOrm(DalEquipmentLib entity) { return(new EquipmentLib { id = entity.Id }); }
public BllEquipmentLib MapToBll(DalEquipmentLib entity) { BllEquipmentLib bllEntity = new BllEquipmentLib { Id = entity.Id }; ISelectedEquipmentMapper selectedEquipmentMapper = new SelectedEquipmentMapper(uow); foreach (var Equipment in uow.SelectedEquipments.GetEquipmentsByLibId(bllEntity.Id)) { var bllSelectedEquipment = selectedEquipmentMapper.MapToBll(Equipment); bllEntity.SelectedEquipment.Add(bllSelectedEquipment); } return(bllEntity); }