public FilepathLib MapToOrm(DalFilepathLib entity)
 {
     return(new FilepathLib
     {
         id = entity.Id,
         folderName = entity.FolderName
     });
 }
        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);
        }