コード例 #1
0
        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));
 }
コード例 #3
0
 public IDataResult <GalleryImage> GetById(int id)
 {
     return(new SuccessDataResult <GalleryImage>(_galleryDal.Get(x => x.Id == id)));
 }