BAL.Manager.NewsManager.DeleteArticle C# (CSharp) Метод

DeleteArticle() публичный Метод

public DeleteArticle ( int id ) : bool
id int
Результат bool
        public bool DeleteArticle(int id)
        {
            try
            {
                var articleDb = uOW.NewsRepo.GetByID(id);
                articleDb.Status = ArticleStatus.Deleted;
                uOW.Save();
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }