using HxModel;
using HxUserManagement.HxDAL;
using System.Collections.Generic;
namespace HxUserManagement.HxBLL
{
///
/// 用户信息
///
public class UserInfoBLL
{
UserInfoDAL dal = new UserInfoDAL();
#region 获取信息
///
/// 获取信息
///
/// ID
///
public UserInfoModel GetInfodById(string id)
{
return dal.GetUserInfodById(id);
}
///
/// 根据参数获取用户信息
///
/// 用户名
///
public UserInfoModel GetInfoByUserName(string username)
{
return dal.GetInfoByUserName(username);
}
///
/// 获取所有用户列表
///
///
public List GetAllUserInfo()
{
return dal.GetAllUserInfo();
}
///
/// 根据状态获取用户列表
///
///
///
public List GetInfo(string status)
{
return dal.GetInfo(status);
}
public List Search(string name, string phone, string state, string authority)
{
return dal.Search(name, phone, state, authority);
}
#endregion
#region 删除
///
/// 删除
///
///
///
public bool DelById(string id)
{
return dal.DelById(id);
}
#endregion
#region 添加
///
/// 添加
///
///
///
public UserInfoModel Add(UserInfoModel model)
{
return dal.Add(model);
}
#endregion
#region 修改
///
/// 修改
///
///
///
public UserInfoModel Update(UserInfoModel model)
{
return dal.Update(model);
}
#endregion
}
}