private async Task Deactivate(string id) { WriteLine("Deactivate sensor (y/n)? "); string input = ReadLine(); if (input == "y" || input == "Y") { WriteLine($"Testing POST \"{Route}{Sensors.Route}/{id}/deactivate\""); try { string response = await Sensors.Deactivate(id); WriteLine($"Deactivate Sent.\nNetwork response: {response}"); } catch (Exception ex) { WriteLine($"Method Error: {ex.Message}\n"); } } }