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); }
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); }