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)); } }
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)); }
public Book.Model.T_Base_User Check(string LoginName, string Password) { Book.DAL.Home dal = new DAL.Home(); return(dal.Check(LoginName, Password)); }
public List <Book.Model.T_Base_Menu> GetList(int RoleId) { Book.DAL.Home dal = new DAL.Home(); return(dal.GetList(RoleId)); }
public Model.User GetUser(int Id) { DAL.Home dal = new DAL.Home(); return(dal.GetUser(Id)); }
public List <Model.User> GetRole() { DAL.Home dal = new DAL.Home(); return(dal.GetRole()); }
public List <Model.Menu> GetList(int RoleId) { DAL.Home dal = new DAL.Home(); return(dal.GetList(RoleId)); }