public bool DeleteAccount() { string username = DBHandler.GetTempUsername(this).ToLower(); DBHandler.DeleteAccount(username); bool exists = DBHandler.GetUsers().Exists(x => x.Username.Equals(username)); if (!exists) { DBHandler.SetTempUsername(this, "Guest"); DBHandler.SetTempRole(this, "Guest"); return(exists); } else { return(exists); } }