📄 product.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -