private void RunWH() { WarehouseController whc = new WarehouseController(); Console.Clear(); string inp = null; string com = null; Console.WriteLine(whc.CheckInput(inp, com)); do { Console.WriteLine("Command:"); com = Console.ReadLine(); Console.WriteLine("Request body:"); inp = Console.ReadLine(); Console.Clear(); Console.WriteLine(whc.CheckInput(inp, com)); }while (whc.isActive); }