温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:多层文章管理系统源码
当前文件:
MultiLayerArticle/SqlServerBLL/ArticleBLL.cs,打开代码结构图
MultiLayerArticle/SqlServerBLL/ArticleBLL.cs,打开代码结构图1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using SqlServerDAL; 5
using Model; 6
7
namespace SqlServerBLL 8
{ 9
public class ArticleBLL 10
{ 11
private ArticleDAL adal = new ArticleDAL(); 12
13
public ArticleCollection GetArticleByArticleType(int typeID) 14
{ 15
return adal.GetArticleByArticleType(typeID); 16
} 17
18
/// <summary> 19
/// 获取全部文章类型 20
/// </summary> 21
/// <returns></returns> 22
public ArticleTypeCollection GetArticleType() 23
{ 24
return adal.GetArticleType(); 25
} 26
27
/// <summary> 28
/// 用户修改文章 29
/// </summary> 30
/// <param name="article"></param> 31
/// <returns></returns> 32
public bool UpdateChangeArticle(ArticleModel article) 33
{ 34
return adal.UpdateChangeArticle(article); 35
} 36
} 37
} 38





}
}