Esempio n. 1
0
 public OperationResult RemoveArticleConfig(int articleId)
 {
     ArticleConfig.Delete(articleId);
     return(UnitOfWork.Commit() > 0
                    ? new OperationResult(StatusCode.Okey)
                    : new OperationResult(StatusCode.Okey, "早就被删了呢!"));
 }
        public void TestDeleteById()
        {
            var section = SectionConfig.FindById(1);

            ArticleConfig.Delete(1);
        }