using System;
using System.Collections.Generic;
using System.Text;
using ypxt.IDAL;
using ypxt.MODEL;
using ypxt.DALFactory;
namespace ypxt.BLL
{
public class BLLLeaveWord
{
//添加留言
public static bool addLeaveWord(LeaveWordinfo lesveword)
{
ILeaveWord bllleaveword = FactoryLeaveWord.create();
return bllleaveword.addLeaveWord(lesveword);
}
public static IList<LeaveWordinfo> GetAllLeaveinfo()
{
ILeaveWord leave = FactoryLeaveWord.create();
return leave.getAllLeaveinfo();
}
public static bool DeleteLeaveinfo(int id)
{
ILeaveWord leave = FactoryLeaveWord.create();
return leave.deleteLeaveinfo(id);
}
}
}