product.cs
来自「电子商务网站转载而来[展开所有目录] [建议增加分类] (重要) 」· CS 代码 · 共 41 行
CS
41 行
using System.Collections.Generic;
using IDAL;
using Model;
/// <summary>
/// BLLProduct 的摘要说明
/// </summary>
namespace BLL
{
/// <summary>
/// 该实现针对类别信息的聚合数据缓存依赖
/// </summary>
public class Product
{
private static readonly IProduct dal = DALFactory.DataAccess.CreateProduct();
public IList<ProductInfo> GetProduct()
{
return dal.GetProduct();
}
public IList<ProductInfo> GetProductById(string nProductId)
{
if (string.IsNullOrEmpty(nProductId))
return new List<ProductInfo>();
return dal.GetProductById(nProductId);
}
public IList<ProductInfo> GetProductByCategory(string nCategoryId)
{
if (string.IsNullOrEmpty(nCategoryId))
return new List<ProductInfo>();
return dal.GetProductByCategory(nCategoryId);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?