用户列表的业务逻辑层代码的封装
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;
}
}
}
时间: 2024-10-10 12:10:31