public DalControlNameLib MapToDal(BllControlNameLib entity) { return(new DalControlNameLib { Id = entity.Id }); }
public BllControlNameLib MapToBll(DalControlNameLib entity) { BllControlNameLib bllEntity = new BllControlNameLib { Id = entity.Id }; ISelectedControlNameMapper selectedControlNameMapper = new SelectedControlNameMapper(uow); foreach (var ControlName in uow.SelectedControlNames.GetControlNamesByLibId(bllEntity.Id)) { var bllSelectedControlName = selectedControlNameMapper.MapToBll(ControlName); bllEntity.SelectedControlName.Add(bllSelectedControlName); } return(bllEntity); }