public ControlMethodDocumentationLib MapToOrm(DalControlMethodDocumentationLib entity)
 {
     return(new ControlMethodDocumentationLib
     {
         id = entity.Id
     });
 }
Exemple #2
0
        public BllControlMethodDocumentationLib MapToBll(DalControlMethodDocumentationLib entity)
        {
            BllControlMethodDocumentationLib bllEntity = new BllControlMethodDocumentationLib
            {
                Id = entity.Id,
            };

            ISelectedControlMethodDocumentationMapper selectedControlMethodDocumentationMapper = new SelectedControlMethodDocumentationMapper(uow);

            foreach (var ControlMethodDocumentation in uow.SelectedControlMethodDocumentations.GetControlMethodDocumentationsByLibId(bllEntity.Id))
            {
                var bllSelectedControlMethodDocumentation = selectedControlMethodDocumentationMapper.MapToBll(ControlMethodDocumentation);
                bllEntity.SelectedControlMethodDocumentation.Add(bllSelectedControlMethodDocumentation);
            }
            return(bllEntity);
        }