private static bool RegLogAction(bool newUser) //Registration or loginin user { if (newUser) { Console.Write("Username: "******"First name: "); string firstName = Console.ReadLine(); Console.Write("Last name: "); string lastName = Console.ReadLine(); Console.Write("Password: "******"") & !password.Equals("")) { currentUser = MainControl.UserRegistration(username, firstName, lastName, password); if (currentUser != null) { Console.WriteLine("\nYou are successfully registered!"); } else { Console.WriteLine("\nUser already does exist"); } } else { Console.WriteLine("Filds \"Username\" and \"Password\" are required."); } Console.ReadKey(); return(false); } // LoginIn else { Console.Write("Username: "******"Password: "******"\n User not founded "); Console.ReadKey(); return(false); } return(true); } }