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);
        }
Exemplo n.º 2
0
        public IHttpActionResult Get([FromUri] PagedQuery pagedQuery, [FromUri] int[] excludeIds)
        {
            var result = ControlService.Get(pagedQuery, excludeIds);

            return(Ok(result));
        }