public static void Log(string url, string token) { try { Facebook.FbAccount model = SQLDatabase.LoadFbAccount(string.Format("select * from FbAccount where token='{0}'", token))[0]; SQLDatabase.AddFbLog(new FbLog() { account = model.account, command = url }); } catch (Exception e) { MessageBox.Show(e.Message, "Log"); } }