using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CallCenterApi.BLL
{
public class Rotation
{
DAL.Rotation dal = new DAL.Rotation();
///
/// 增加一条图片
///
///
///
public int Add(Model.Rotation model)
{
return dal.Add(model);
}
///
/// 查询图片信息
///
///
public DataSet GetList(string name)
{
return dal.GetList(name);
}
///
/// 禁用图片信息
///
///
///
public bool delrotation(string id)
{
return dal.delrotation(id);
}
///
/// 启用图片信息
///
///
///
public bool poenRotion(string id)
{
return dal.poenRotion(id);
}
///
/// 删除图片信息
///
///
public bool SCRotion(string id)
{
return dal.SCRotion(id);
}
///
/// 获取数剧列表
///
///
///
public List DataTableToList(DataTable dt)
{
List modelList = new List();
int rowsCount = dt.Rows.Count;
if (rowsCount > 0)
{
Model.Rotation model;
for (int n = 0; n < rowsCount; n++)
{
model = dal.DataRowToModel(dt.Rows[n]);
if (model != null)
{
modelList.Add(model);
}
}
}
return modelList;
}
}
}