public void ShowTradingDeals(List <string> login) { bool isOnline = false; for (int i = 0; i < login.Count; i++) { if (login[i] == authorization) { isOnline = true; } } if (!isOnline) { string data = "\nuser is not logged in \n"; string status = "404 Not found"; string mime = "text/plain"; ServerResponse(status, mime, data); return; } string tradingdeals = Database.selectTradingOfferings(); if (tradingdeals == "0") { string data = "\nError in Database \n"; string status = "404 Not found"; string mime = "text/plain"; ServerResponse(status, mime, data); return; } else { string status = "404 Not found"; string mime = "text/plain"; ServerResponse(status, mime, tradingdeals); return; } }