Example #1
0
        public DalFilepath MapToDal(BllFilepath entity)
        {
            DalFilepath dalEntity = new DalFilepath
            {
                Id   = entity.Id,
                Path = entity.Path
            };

            return(dalEntity);
        }
Example #2
0
        public BllFilepath MapToBll(DalFilepath entity)
        {
            BllFilepath bllEntity = new BllFilepath
            {
                Id   = entity.Id,
                Path = entity.Path,
            };

            return(bllEntity);
        }
        public BllFilepathLib MapToBll(DalFilepathLib entity)
        {
            BllFilepathLib bllEntity = new BllFilepathLib();

            bllEntity.Id         = entity.Id;
            bllEntity.FolderName = entity.FolderName;

            IFilepathMapper mapper = new FilepathMapper();

            foreach (var item in ((IGetterByLibId <DalFilepath>)uow.Filepaths).GetEntitiesByLibId(bllEntity.Id))
            {
                BllFilepath bllSelectedEntity = mapper.MapToBll(item);
                bllEntity.Entities.Add(bllSelectedEntity);
            }
            return(bllEntity);
        }