Пример #1
0
 public ImageLib MapToOrm(DalImageLib entity)
 {
     return(new ImageLib
     {
         id = entity.Id
     });
 }
        public BllImageLib MapToBll(DalImageLib entity)
        {
            BllImageLib bllEntity = new BllImageLib
            {
                Id = entity.Id
            };

            IImageMapper imageMapper = new ImageMapper();

            foreach (var Image in uow.Images.GetImagesByLibId(bllEntity.Id))
            {
                var bllImage = imageMapper.MapToBll(Image);
                bllEntity.Image.Add(bllImage);
            }
            return(bllEntity);
        }