public IResult Delete(int id) { IResult result = BusinessRule.Run ( CheckIfVideoAlreadyDeleted(id) ); if (result != null) { return(result); } var deleteToVideo = _videoDal.Get(v => v.Id == id); _fileSystem.Delete(deleteToVideo.VideoPath); _fileSystem.Delete(deleteToVideo.ThumbnailPath); _videoDal.Delete(deleteToVideo); return(new SuccessResult()); }
public void Delete(Video video) { _videoDal.Delete(video); }