public ControlMethodDocumentation MapToOrm(DalControlMethodDocumentation entity)
 {
     return(new ControlMethodDocumentation
     {
         id = entity.Id,
         controlName_id = entity.ControlName_id,
         name = entity.Name,
         pressmark = entity.Pressmark
     });
 }
        public BllControlMethodDocumentation MapToBll(DalControlMethodDocumentation entity)
        {
            BllControlMethodDocumentation bllEntity = new BllControlMethodDocumentation
            {
                Id          = entity.Id,
                Name        = entity.Name,
                Pressmark   = entity.Pressmark,
                ControlName = entity.ControlName_id != null?controlNameService.Get((int)entity.ControlName_id) : null,
            };

            return(bllEntity);
        }
        public DalControlMethodDocumentation MapToDal(BllControlMethodDocumentation entity)
        {
            DalControlMethodDocumentation dalEntity = new DalControlMethodDocumentation
            {
                Id             = entity.Id,
                Name           = entity.Name,
                Pressmark      = entity.Pressmark,
                ControlName_id = entity.ControlName != null ? entity.ControlName.Id : (int?)null
            };

            return(dalEntity);
        }