using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL;
using CY.Model;
using AbstractFactory;
using CY.IBaseDAL;
using CY.Infrastructure.DESEncrypt;
using CY.Infrastructure.Query;
namespace CY.BLL.EC
{
public class EC_PrizeReciveAddressBLL
{
IEC_PrizeReciveAddressDAL prizeReciveAddressDAL;
public EC_PrizeReciveAddressBLL()
{
prizeReciveAddressDAL = Factory.GetDALByInterfaceName(DALInterface.IEC_PrizeReciveAddressDAL) as IEC_PrizeReciveAddressDAL;
}
///
/// 插入一个奖品地址
///
///
///
public bool InsertModel(EC_PrizeReciveAddress model)
{
return prizeReciveAddressDAL.InserModel(model);
}
///
/// 修改一个地址
///
///
///
public bool UpdateModel(EC_PrizeReciveAddress model)
{
return prizeReciveAddressDAL.UpdateModel(model);
}
///
/// 根据Keyid获取单个奖品获取地址
///
///
///
public EC_PrizeReciveAddress getOnePriceAddress(int? Keyid)
{
return prizeReciveAddressDAL.getOnePriceAddress(Keyid);
}
///
/// 获取全部奖品地址
///
///
public IEnumerable getAllPriceAddress(Pagination pa)
{
return prizeReciveAddressDAL.getAllPriceAddress( pa);
}
///
/// 不实现分页的全部地址 用于奖品信息的使用
///
///
///
public IEnumerable getAllPriceAddress()
{
return prizeReciveAddressDAL.getAllPriceAddress();
}
///
/// 删除奖品地址
///
///
///
public bool DeleteModel(EC_PrizeReciveAddress model)
{
return prizeReciveAddressDAL.DeleteModel(model);
}
}
}