public async void SendLogin() { _view.ShowProgressBar(); var model = _view.GetData(); UserModel user = null; await Task.Run(async() => { Thread.Sleep(2500); user = Login(model.Email, model.Password); }); if (user == null) { _view.ShowSnackBar(Resource.String.invalidPasswordOrEmail); _view.HideProgressBar(); return; } User = user; var email = user.Email; SaveLoggedUser(email); _view.SendSuccess(); }