public int Do(int id) { var news = _newsManager.GetOneNews(id, x => x); if (_newsManager.DeleteOneNews(id) > 0) { _fileManager.DeleteImage(news.Image); return(0); } else { return(-1); } }