63 lines
1.2 KiB
C#
63 lines
1.2 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 areaBll
|
|
{
|
|
public areaDal Dal = new areaDal();
|
|
public List<areaModel> GetAllTreeList()
|
|
{
|
|
return Dal.GetAllTreeList();
|
|
}
|
|
|
|
public areaModel GetmodelByName(string name)
|
|
{
|
|
return Dal.GetmodelByName(name);
|
|
}
|
|
|
|
public List<areaModel> GetAllList()
|
|
{
|
|
return Dal.GetAllList();
|
|
}
|
|
|
|
public List<areaModel> GetListByKey(string key)
|
|
{
|
|
return Dal.GetListByKey(key);
|
|
}
|
|
|
|
|
|
public List<areaModel> GetAllList(string id)
|
|
{
|
|
return Dal.GetAllList(id);
|
|
}
|
|
|
|
public List<areaModel> GetChild(string id)
|
|
{
|
|
return Dal.GetChild(id);
|
|
}
|
|
|
|
public bool Add(areaModel model)
|
|
{
|
|
|
|
return Dal.Add(model);
|
|
}
|
|
|
|
public bool Update(areaModel model)
|
|
{
|
|
return Dal.Update(model);
|
|
}
|
|
|
|
public object delete(string id)
|
|
{
|
|
return Dal.delete(id);
|
|
}
|
|
}
|
|
}
|
|
|