예제 #1
0
 public DalControlNameLib MapToDal(BllControlNameLib entity)
 {
     return(new DalControlNameLib
     {
         Id = entity.Id
     });
 }
예제 #2
0
        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);
        }