Example #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));
     }
 }
Example #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));
 }
Example #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));
 }
Example #4
0
 public List <Book.Model.T_Base_Menu> GetList(int RoleId)
 {
     Book.DAL.Home dal = new DAL.Home();
     return(dal.GetList(RoleId));
 }
Example #5
0
 public Model.User GetUser(int Id)
 {
     DAL.Home dal = new DAL.Home();
     return(dal.GetUser(Id));
 }
Example #6
0
 public List <Model.User> GetRole()
 {
     DAL.Home dal = new DAL.Home();
     return(dal.GetRole());
 }
Example #7
0
 public List <Model.Menu> GetList(int RoleId)
 {
     DAL.Home dal = new DAL.Home();
     return(dal.GetList(RoleId));
 }