Esempio n. 1
0
        public string DeleteImage(int imageId, string userId)
        {
            var image = _iImageDao.GetById(imageId);

            CheckImageAndUserIdentity(image, userId);

            var imageName = image.Name;

            _iImageDao.Delete(image);

            return(imageName);
        }
Esempio n. 2
0
 public ImageEntity GetById(int id)
 {
     try
     {
         return(_imageDao.GetById(id));
     }
     catch
     {
         throw;
     }
 }