首页 > 代码库 > ASP.NET 业务逻辑层用户列表的各种操作封装
ASP.NET 业务逻辑层用户列表的各种操作封装
用户列表的业务逻辑层代码的封装
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CZBK.TestProject.Model;
namespace CZBK.TestProject.BLL
{
public class EmployeeService
{
DAL.EmployeeDal EmployeeDal = new DAL.EmployeeDal();
public List<Employee> GetEntityList()
{
return EmployeeDal.GetEntityList();
}
public bool DeleteEntity(int id)
{
return EmployeeDal.DeleteEmployee(id)>0;
}
public Employee GetOne(int id)
{
return EmployeeDal.GetEntityModel(id);
}
public bool update(Employee em)
{
return EmployeeDal.UpdateEmployee(em)>0;
}
}
}
ASP.NET 业务逻辑层用户列表的各种操作封装