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

            _galleryDal.Delete(value);
            return(new SuccessResult());
        }
예제 #2
0
 public void RemoveImage(int id)
 {
     _galleryDal.Delete(_galleryDal.Get(s => s.Id == id));
 }
 public IDataResult <GalleryImage> GetById(int id)
 {
     return(new SuccessDataResult <GalleryImage>(_galleryDal.Get(x => x.Id == id)));
 }