public static bool DeleteFriend(int id) { try { AccountManager lm = AccountManager.GetInstance(); DefaultApi api = new DefaultApi("http://localhost:8080/api/"); return(api.DeleteFriend(id, lm.Token).Value); } catch (ApiException e) { } return(false); }