tijian_tieying/web/dccdc.BLL/newsinfoBll.cs
2025-02-20 12:14:39 +08:00

58 lines
1.1 KiB
C#

using dccdc.DAL;
using dccdc.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dccdc.BLL
{
public class newsinfoBll
{
public newsinfoDal Dal = new newsinfoDal();
public List<newsinfoModel> GetAllTreeList()
{
return Dal.GetAllTreeList();
}
public newsinfoModel GetmodelByName(string name)
{
return Dal.GetmodelByName(name);
}
public List<newsinfoModel> GetAllList()
{
return Dal.GetAllList();
}
public List<newsinfoModel> GetListByKey(string key)
{
return Dal.GetListByKey(key);
}
public List<newsinfoModel> GetAllList(string id)
{
return Dal.GetAllList(id);
}
public bool Add(newsinfoModel model)
{
return Dal.Add(model);
}
public bool Update(newsinfoModel model)
{
return Dal.Update(model);
}
public object delete(string id)
{
return Dal.delete(id);
}
}
}