📄 commentbussiness.cs
字号:
///////////////////////////////////////////////////////////
// CommentBussiness.cs
// Implementation of the Class CommentBussiness
// Generated by Enterprise Architect
// Created on: 13-五月-2006 19:53:13
///////////////////////////////////////////////////////////
using BookShop.Entity;
using BookShop.DataAccess;
using System.Data;
namespace BookShop.Bussiness
{
/// <summary>
/// 评论的业务层
/// </summary>
public class CommentBussiness
{
public CommentBussiness()
{
}
~CommentBussiness()
{
}
public virtual void Dispose()
{
}
/// <summary>
/// 添加评论
/// </summary>
/// <param name="comment"></param>
public bool AddComment(CommentEntity comment)
{
return new CommentAccess().AddComment(comment);
}
/// <summary>
/// 根据ID删除评论
/// </summary>
/// <param name="commentID"></param>
public bool DeleteCommentByID(int commentID)
{
return new CommentAccess().DeleteCommentByID(commentID);
}
/// <summary>
/// 根据评论者获取评论列表
/// </summary>
/// <param name="commenterID"></param>
public DataTable GetCommentsByCommenterID(int commenterID)
{
return new CommentAccess().GetCommentsByCommenterID(commenterID);
}
/// <summary>
/// 根据货物ID获取评论列表
/// </summary>
/// <param name="goodsID"></param>
public DataTable GetCommentsByGoodsID(int goodsID)
{
return new CommentAccess().GetCommentsByGoodsID(goodsID);
}
}//end CommentBussiness
}//end namespace Bussiness
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -