Esempio n. 1
0
 public static void registrate(string fullName, string email, string pass, RegistrationForm registrationForm)
 {
     try
     {
         dataService.addUser(fullName, email, pass);
         dataService.addSession(email, getMAC());
         view.fromRegistrationToMainForm(registrationForm);
     }
     catch (Npgsql.PostgresException e)
     {
         registrationForm.showRegistrationError();
         Console.WriteLine(e.MessageText);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }