Example #1
0
 /// <summary>
 /// 保存一篇文章.
 /// </summary>
 /// <param name="model"></param>
 public void SaveArticle(Model.ArticleModel model)
 {
     DAL.ArticleDAL dal = new DAL.ArticleDAL();
     if (model.ArticleId == "")
     {
         model.ArticleId = Common.TimeString.GetNow_ff();
         dal.Add(model);
     }
     else
     {
         dal.Update(model);
     }
 }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(T_Article model)
 {
     return(dal.Update(model));
 }