示例#1
0
        public static ADMIN GetAdmin(string name)
        {
            List <ADMIN> admins = ADMINDAL.GetAdmins();

            foreach (ADMIN admin in admins)
            {
                if (admin.ADMINNAME.Equals(name))
                {
                    return(admin);
                }
            }
            return(null);
        }
示例#2
0
 public static List <ADMIN> GetAllAdmins() => ADMINDAL.GetAdmins();