Ejemplo n.º 1
0
        private async Task AcceptButton_Clicked(object sender, EventArgs e)
        {
            try
            {
                counselRequestDetailViewModel.IsBusy = true;

                CounselRequestDto responseCounselRequest = await counselService.AcceptCounselRequest(counselRequest);

                if (responseCounselRequest != null)
                {
                    await alertDisplayer.DisplayAlert(this, "Asesoría", "Confirmación exitosa!", "Ok");

                    App.Current.MainPage = new Dashboard.DashboardPage();
                }
            }
            catch (Exception ex)
            {
                exceptionHandler.HandleException(this, ex);
            }
            finally { counselRequestDetailViewModel.IsBusy = false; }
        }