public async void Login() { UsersDataAccess dataAccess = new UsersDataAccess(); user = await dataAccess.Find(view.Username, view.Password); if (user != null) { view.LoadMenu(user); view.ShowMessage("Access granted!"); } else { //access denied view.ShowMessage("Access denied!"); } }