Esempio n. 1
0
        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!");
            }
        }