BLL/LoginManager.cs
(完整代码) 1KBusing DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public class LoginManager
{
//验证管理员账号
public bool Bll_yanZheng(string _userName, string userPwd)
{
//引用DAL里的方法,先实例化一个它的对象
LoginService tdl = new LoginService();
return tdl.yanZheng(_userName, userPwd);
}
//验证学生账号
public bool Bll_yanZheng2(int _userName, string userPwd)
{
//引用DAL里的方法,先实例化一个它的对象
LoginService tdl = new LoginService();
return tdl.yanZheng2(_userName, userPwd);
}
//验证教师账号
public bool Bll_yanZheng3(int _userName, string userPwd)
{
//引用DAL里的方法,先实例化一个它的对象
LoginService tdl = new LoginService();
return tdl.yanZheng3(_userName, userPwd);
}
//验证学生账号是否正确
public static student getUserInfo(int userName,string userPwd)
{
return LoginService.getUserInfo(userName,userPwd);
}
//验证管理员账号是否正确
public static Admin getAdminInfo(string userName,string userPwd)
{
return LoginService.getAdminInfo(userName,userPwd);
}
//验证教师账号是否正确
public static teacher getTeacherInfo(int userName, string userPwd)
{
return LoginService.getTeacherInfo(userName, userPwd);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。