Example #1
0
        public static int DeleteServer(string HosterName)
        {
            int      flag     = 0;
            ServerDB serverDB = new ServerDB();

            bool s = serverDB.DeleteServer(HosterName);

            if (s)
            {
                flag = 1;
            }
            else
            {
                flag = 0;
            }
            return(flag);
        }
Example #2
0
        public static int DeleteServer(int ID)
        {
            int      flag     = 0;
            ServerDB serverDB = new ServerDB();

            bool s = serverDB.DeleteServer(ID);

            if (s)
            {
                flag = 1;
            }
            else
            {
                flag = 0;
            }
            return(flag);
        }