static public void CreateUser() { if (usersandawardsLogic.AddUser(EnterNameUser(), EnterBirthUser())) { Console.WriteLine("User create successfull!"); } else { Console.WriteLine("User don't create"); } Console.WriteLine("Please press any key for continue"); Console.ReadKey(); }
static public bool CreateUser(string Name, string Birth) { if (CheckBirthUser(Birth, out DateTime birth) && Name.Length != 0) { if (usersandawardsLogic.AddUser(Name, birth)) { return(true); } else { return(false); } } return(false); }