public int zarejestruj(Baza_danych b)
        {
            Console.Clear();
            Console.Write("Podaj imie: ");
            string im = Console.ReadLine();

            Console.Write("Podaj nazwisko: ");
            string na = Console.ReadLine();

            Console.Write("Podaj numer: ");
            int nr = Convert.ToInt32(Console.ReadLine());

            Console.Write("Podaj email: ");
            string em = Console.ReadLine();

            Console.Write("Podaj haslo: ");
            string ha = Console.ReadLine();

            user.nowy(im, na, nr, em, ha);
            b.nowy_user(em, ha);
            Console.WriteLine("--------------------------------");
            Console.WriteLine("Rejestracja przebiegła pomyślnie");
            Console.WriteLine("--------------------------------");
            Console.WriteLine("Aby wrocic kliknij 1");
            int klucz = Convert.ToInt32(Console.ReadLine());

            return(klucz);
        }
 public void nowy_userr(Baza_danych b, string email, string haslo)
 {
     b.nowy_user(email, haslo);
 }