예제 #1
0
 private async Task SignUpAsync()
 {
     if (Validate())
     {
         logindetails.username = administrators.Username;
         Database_API database = new Database_API();
         database.SignUpAdminUsersAsync(logindetails, administrators);
         Application.Current.MainPage = new NavigationPage(new MenuPageAdmin());
     }
     else
     {
         Console.WriteLine("Database Error.");
     }
 }