Пример #1
0
 public static AdminDAO Instance()
 {
     if (instance == null)
     {
         instance = new AdminDAO();
     }
     return(instance);
 }
Пример #2
0
 public DataTable AdminGetAllRolesByID(int rolesID)
 {
     AdminDAO adminDAO = new AdminDAO();
     return adminDAO.AdminGetAllRolesByID(rolesID);
 }
Пример #3
0
 public DataTable GetAllAdminRoles()
 {
     AdminDAO adminDAO = new AdminDAO();
     return adminDAO.GetAllAdminRoles();
 }
Пример #4
0
 public DataTable GetAdminBystrName(string strCate)
 {
     string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','");
     AdminDAO adminDAO = new AdminDAO();
     return adminDAO.GetAdminByStrName(restr);
 }
Пример #5
0
 public Admin GetAdminById(string nameadmin)
 {
     AdminDAO adminDAO = new AdminDAO();
     return adminDAO.GetAdminById(nameadmin);
 }