public static AdminDAO Instance() { if (instance == null) { instance = new AdminDAO(); } return(instance); }
public DataTable AdminGetAllRolesByID(int rolesID) { AdminDAO adminDAO = new AdminDAO(); return adminDAO.AdminGetAllRolesByID(rolesID); }
public DataTable GetAllAdminRoles() { AdminDAO adminDAO = new AdminDAO(); return adminDAO.GetAllAdminRoles(); }
public DataTable GetAdminBystrName(string strCate) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); AdminDAO adminDAO = new AdminDAO(); return adminDAO.GetAdminByStrName(restr); }
public Admin GetAdminById(string nameadmin) { AdminDAO adminDAO = new AdminDAO(); return adminDAO.GetAdminById(nameadmin); }