Beispiel #1
0
 public Object Check(int RoleId, int SchoolId, string LoginName, string Password)
 {
     DAL.Home dal = new DAL.Home();
     if (RoleId == 5)
     {
         return(dal.CheckAdmin(RoleId, LoginName, Password));
     }
     else if (RoleId == 4)
     {
         return(dal.CheckStudent(RoleId, SchoolId, LoginName, Password));
     }
     else
     {
         return(dal.CheckTeacher(RoleId, SchoolId, LoginName, Password));
     }
 }
Beispiel #2
0
 public List <Book.Model.T_Base_Menu> GetList(int RoleId, string Controller, string Action)
 {
     Book.DAL.Home dal = new DAL.Home();
     return(dal.GetList(RoleId, Controller, Action));
 }
Beispiel #3
0
 public Book.Model.T_Base_User Check(string LoginName, string Password)
 {
     Book.DAL.Home dal = new DAL.Home();
     return(dal.Check(LoginName, Password));
 }
Beispiel #4
0
 public List <Book.Model.T_Base_Menu> GetList(int RoleId)
 {
     Book.DAL.Home dal = new DAL.Home();
     return(dal.GetList(RoleId));
 }
Beispiel #5
0
 public Model.User GetUser(int Id)
 {
     DAL.Home dal = new DAL.Home();
     return(dal.GetUser(Id));
 }
Beispiel #6
0
 public List <Model.User> GetRole()
 {
     DAL.Home dal = new DAL.Home();
     return(dal.GetRole());
 }
Beispiel #7
0
 public List <Model.Menu> GetList(int RoleId)
 {
     DAL.Home dal = new DAL.Home();
     return(dal.GetList(RoleId));
 }