public DalControlMethodsLib MapToDal(BllControlMethodsLib entity) { return(new DalControlMethodsLib { Id = entity.Id }); }
public BllControlMethodsLib MapToBll(DalControlMethodsLib entity) { BllControlMethodsLib bllEntity = new BllControlMethodsLib { Id = entity.Id }; ControlService controlService = new ControlService(uow); foreach (var Control in uow.Controls.GetControlsByLibId(entity.Id)) { bllEntity.Control.Add(controlService.Get(Control.Id)); } return(bllEntity); }