private void LogInWithPassword() { _writer.Writer(Properties.Resources.EnterLogin); int login = _reader.NumberReader(); _writer.Writer(Properties.Resources.EnterPassword); string password = _reader.PasswordReader(); if (_logicSystem.CheckLogin(login, password)) { MonthOverviewConsole monthOverview = new MonthOverviewConsole(login, _reader, _writer, _logicSystem); monthOverview.GetMonthOverview(); MenuChooseSystem(); } else { _writer.Clear(); _writer.Writer(Properties.Resources.WrongLoginPassError); MenuChooseSystem(); } }
public bool CheckLogin(int id, string password) { return(_logic.CheckLogin(id, password)); }