private async Task PerformAction(ActionType action) { switch (action) { case ActionType.DisplayIncome: _displayer.DisplayIncome(await _financeService.GetIncomeHistory()); break; case ActionType.DisplayExpenses: _displayer.DisplayExpenses(await _financeService.GetExpenseHistory()); break; case ActionType.DisplayFullInformation: _displayer.DisplayFullInformation(await _financeService.GetFullInformation()); break; case ActionType.AddNewIncome: await AddNewIncome(); break; case ActionType.AddNewExpense: await AddNewExpense(); break; case ActionType.ClearHistory: await _financeService.ClearHistory(); break; case ActionType.Exit: TurnOffApp(); break; case ActionType.Logout: await _cookieManager.DeleteCookies(); TurnOffApp(); break; default: break; } }