业务逻辑层按操作角色命名,
public class ProductBll
{
//普通浏览页面使用的方法
ProductBll.BrowseByCategory(int categoryPkid)
{
return dal.GetList(categoryPkid,true);/*第二个参数是bool? IsEnabled=true,即有效的*/
}
//管理后台使用的方法
ProductBll.ManageByCategory(int categoryPkid)
{
return dal.GetList(categoryPkid,null);/*返回所有,不管有效与否,bool? IsEnabled=null*/
}
}