public IResult Update(GalleryImage galleryImage, string source) { if (source == "") { _galleryDal.Update(galleryImage); return(new SuccessResult()); } var result = DeleteGalleryImage(source); if (result.Success) { _galleryDal.Update(galleryImage); return(new SuccessResult()); } DeleteGalleryImage(galleryImage.Source); return(new ErrorResult(Messages.GeneralError)); }
public void TUpdate(Gallery t) { _galleryDal.Update(t); }
public IResult Update(Gallery gallery) { _galleryDal.Update(gallery); return(new SuccessResult()); }