protected static void ConfirmTransaction(InternalBankAccounts transactionHolder) { string question = "Confirm transaction? y/n: "; string answer = ApplicationMenus.ValidateAnswer(question); if (answer == "y") { FileAccess.memoryBuffer.Add(transactionHolder); try { afdempDB.SubmitChanges(); } catch (Exception e) { Console.WriteLine(e.Message); } } }
static void Main(string[] args) { User loggedUser = LoginScreen.LoginSystem(); ApplicationMenus.CheckUserLevel(loggedUser); }