public IResult Delete(int id)
        {
            var value = _galleryDal.Get(x => x.Id == id);

            _galleryDal.Delete(value);
            return(new SuccessResult());
        }
        public IResult Delete(GalleryImage galleryImage)
        {
            var result = DeleteGalleryImage(galleryImage.Source);

            if (result.Success)
            {
                _galleryDal.Delete(galleryImage);
                return(new SuccessResult(Messages.GalleryImageDeleted));
            }

            return(new ErrorResult(Messages.GeneralError));
        }
Exemplo n.º 3
0
 public void TDelete(Gallery t)
 {
     _galleryDal.Delete(t);
 }
Exemplo n.º 4
0
 public void RemoveImage(int id)
 {
     _galleryDal.Delete(_galleryDal.Get(s => s.Id == id));
 }